Script will not run in sql.

shackdavid

Active Member
Joined
Aug 26, 2011
Messages
43
Reaction score
1
Good day, I have been using a sql. database and associated scripts which I inherited from a previous user.
This database and scripts has been running on a WINXP machine for years without issue.
Oracle Database 10g Express Edition has been used and we access database via the web browser, IE.

I have tried to move over to a WIN 7 machine as the database is accessed by a win32 program.

I keep getting a red screen when I try to run the script, the script is as follows:

--
-- Purpose : Create the default tablespace for the NEMAS DB user
-- Usage : @create_tablespace <filename_with_complete_path>
--
CREATE TABLESPACE "NEMAS"
DATAFILE 'c:\nemas\nemas.dbf'
SIZE 100M REUSE
DEFAULT STORAGE
(
INITIAL 104K
NEXT 104K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
);

Please help.
 

Attachments

  • create_user sql issue.png
    create_user sql issue.png
    141.2 KB · Views: 51
Last edited:
Don't know my PL/SQL too well, but why is everything on a single line? Is it ignoring your newlines?

Because essentially everything is one big comment then.

Also you have more code executing than what you pasted. The error could be in the other portion.
 
Good day, I have been using a sql. database and associated scripts which I inherited from a previous user.
This database and scripts has been running on a WINXP machine for years without issue.
Oracle Database 10g Express Edition has been used and we access database via the web browser, IE.

I have tried to move over to a WIN 7 machine as the database is accessed by a win32 program.

I keep getting a red screen when I try to run the script, the script is as follows:

--
-- Purpose : Create the default tablespace for the NEMAS DB user
-- Usage : @create_tablespace <filename_with_complete_path>
--
CREATE TABLESPACE "NEMAS"
DATAFILE 'c:\nemas\nemas.dbf'
SIZE 100M REUSE
DEFAULT STORAGE
(
INITIAL 104K
NEXT 104K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
);

Please help.

Single lines are a pain. Not sure on Oracle but check that you have :

1. Rights to create databases
2. The folder has allowed write permissions to the instance running security context.
 
In which editor have you edited the script?
Seems like a line termination issue (\n vs \n\r).
 
So when I run the script in WINXP via the brower it works.

1593883149928.png
When i run in Win 7 via the same browser, i get red screen (error) why ?
 
So when I run the script in WINXP via the brower it works.

View attachment 869937
When i run in Win 7 via the same browser, i get red screen (error) why ?
Could be a browser issue. Set compatibility to ie 7 or compatibility mode in ie and see if makes a difference. As others have said, it appears in a single line in the one and correctly set in the other. Your second actually has line no's etc which is missing from the first so I suspect the control is not compatible, nothing wrong with the script.
 
Thanks alot Kosmik, setting I.E. 11 to compatibility mode solved this issue.

Happy day.
 
Thanks alot Kosmik, setting I.E. 11 to compatibility mode solved this issue.

Happy day.
It seems that IE 11 have an issue with line wrapping in text areas.

Is it working in a proper browser (FF/Chrome)?
 
Top
Sign up to the MyBroadband newsletter
X