ORA-00911 during addition of comment in the SQL command.
I work within the ORACLE Database Express Edition page "SQL Command".The following query works fine for me:
SELECT *.
CUSTOMERS
As soon as I add comments, I get an error ORA-00911:
-It is a comment.
--
SELECT *.
CUSTOMERS
ORA-00911: invalid character
Hello
Apex SQL worksheet don't like comments. What is reason you like add comments when you run the query?
You can try
SELECT *
/*This is a comment.*/
FROM CUSTOMERS
Kind regards
Jari
Tags: Database
Similar Questions
-
ORA-00604: an error has occurred at the SQL level 1 recursive
Hi all
I made the full database expdp and impdp Production to test the server its success but during the creation of any user or change password its me poster below error
SQL > create user identified by bam bam
2 default tablespace users
3 tablespace temporary temp
4 unlimited quota on users;
create user bam identified by bam
*
ERROR on line 1:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-06502: PL/SQL: digital or value error: character string buffer too small
ORA-06512: at line 7
SQL > alter user identified by 12345; system
change the system of the user identified by 12345
*
ERROR on line 1:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-06502: PL/SQL: digital or value error: character string buffer too small
ORA-06512: at line 7
kindly help me to solve this problem.
Thank you.One last thing. 100% make sure error is defined as partners on the issue of Test database:
change the system '_system_trig_enabled' = FALSE;
And then try to create/modify the user. For example:
SQL> create or replace 2 trigger ORA_06502 3 after alter 4 on database 5 declare 6 v_str1 varchar2(1); 7 v_str2 varchar2(3); 8 begin 9 v_str2 := 'ABC'; 10 v_str1 := v_str2; 11 end; 12 / Trigger created. SQL> alter user u1 identified by u1 2 / alter user u1 identified by u1 * ERROR at line 1: ORA-00604: error occurred at recursive SQL level 1 ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 6 SQL> alter system set "_system_trig_enabled"=FALSE; System altered. SQL> alter user u1 identified by u1 2 / User altered. SQL>
SY.
-
creation of database using the SQL command * more
Hello
This isn't a matter of urgency.
I learn the Oracle DBA. I have installed Oracle 9.2 in my windows system. And I'm trying to create a database using the SQL command.
OracleVersion: 9.2
Windows XP operating system
I get the error like below when executing the CREATE DATABASE command.CREATE DATABASE suri USER SYS identified by manager USER system identified by surendra LOGFILE GROUP 1 ('F:\Oracle\oradata\suri\redo01.log') SIZE 100M, GROUP 2 ('F:\Oracle\oradata\suri\redo02.log') SIZE 100M, GROUP 3 ('F:\Oracle\oradata\suri\redo03.log') SIZE 100M MAXLOGFILES 5 MAXLOGMEMBERS 5 MAXLOGHISTORY 1 MAXDATAFILES 100 MAXINSTANCES 1 CHARACTER SET US7ASCII NATIONAL CHARACTER SET AL16UTF16 DATAFILE 'F:\Oracle\oradata\suri\system01.dbf' size 200M EXTENT MANAGEMENT LOCAL UNDO tablespace undots datafile 'F:\Oracle\oradata\suri\undots01.dbf' size 200M DEFAULT TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100M EXTENT MANAGEMENT LOCAL
I have validated the syntax but not able to find where is the error.ERROR at line 16: ORA-25139: invalid option for CREATE TEMPORARY TABLESPACE
Please let me know if you need more details.
Thanks in advance for your help.
Kind regards
SuriOracleVersion: 9.2
Why a so old version (and desupported)? In any case...
TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100 M EXTENT MANAGEMENT LOCAL default
.. try change DATAFILE with TEMPFILE.
-
How to monitor the sql commands?
Hello
Are there opportunities to control all the SQL commands (ddl, dml) run from all the tools of database (sqlplus, sqldeveloper, Toad, etc.)? Precisious more... Is there something like .bash_history in Linux operating system?
Best.Hello
Reference: http://www.juliandyke.com/Diagnostics/Trace/EnablingTrace.html
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14211/SQLTrace.htm#PFGRF01010It's an additional reference.
http://download.Oracle.com/docs/CD/B10501_01/EM.920/a88748/otdv.htm-Pavan Kumar N
-
Maximum length of the SQL command
I created a MySQL database and a LabView 8.6 application that inserts data into the database using the SQL Toolbox. I have a problem very long character data insertion in a LONGTEXT field. I determined that the problem occurs when the SQL command is more than 1 048 574 characters or the length of a particular field exceeds 1 048 326 characters (cannot say who).
The error I get is "error-2147467259 occurred at NI_Database_API.lvlib:Conn Execute.vi. "Exception occurred in the Microsoft OLE DB provider for ODBC drivers: [MySQL] [ODBC 5.1 Driver] [mysqld - 5.1.35 - community] MySQL version disappeared in NI_Database_API.lvlib:Conn Execute.vi.
According to the MYSQL documentation, a LONGTEXT can 4294967295 characters, so length shouldn't be a problem. The documentation also indicates "the effective maximum length of LONGTEXT columns also depends on the maximum packet size that is configured in the client/server protocol and available memory", but I don't know how to configure the packet size in LabView.
I enclose the code example that reproduces the problem, although it is based on a special run table structure effectively. The table definition is included on the diagram.
This setting must be configured outside of LabVIEW (UDL or DSN).
You must configure the server and the client:
I found this link while searching on stackoverflow
http://dev.MySQL.com/doc/refman/5.1/en/packet-too-large.html
You may need to select/Configure a specific vendor (different) in order to set this variable.
-
Access to SQL previously saved in the SQL command window
Hi all
If I kept some codes SQL in the SQL command window, should we not available to other developers when they click on the saved SQL tab? I saved an example query and one of my other developers can't see it. I don't see any setting available on the developer account that controls whether or not the account can see others saved SQL.
If this is not allowed, then I see really the point of the drop in the saved SQL owner tab.
Any advice?
Thank you!!
JohnMy apologies - I've never used this tab so I was not aware of it.
I played a little and it seems that if you are an administrator of the workspace, but your other user is just a developer, then in fact he or she cannot see your SQL. If you were to switch to the workspace administrators, they should be able to see.
-
ORA-00900 - the SQL commands: invalid SQL statement
Hello world
I installed Oracle Xe on a Centos 5.5 host yesteday.
Installation was Ok, I can connect to the web interface on "http://127.0.0.1:8080 / apex / '.
But when I want to use sql commands, regardless of the input control, I have the "ORA-00900: invalid SQL statement" message.
I can enter the command "Show all", for example, in a terminal after SQL > command prompt, it works... but not in the web interface...
I tried to import the .sql, script trought the web interface, no much result, no display in the window.
Can someone help me,
Thank youShow all is NOT a SQL command is a command that I think, not a command from pl/sql, sql more... Why not try to do a select on a table is know YOU the schema...
Thank you
Tony Miller
Webster, TX -
Export to loose HTML comment containing the SQL statement
When using the grid data--> HTML... export function, the exported HTML code (whether to the Clipboard or file) is invalid.
The end HTML contains an HTML comment containing the query used, but this observation is not properly closed and continues until the end of the file.
< html > < head >
< meta http-equiv = "content-type" content = text/html"; charset = Cp1252 ">"
[my data]
...
< /tr >
< / tbody > < / table > <!-SQL:
[request]
...
... ORDER BY columnA columnB DESC, ASC - < body / > < / html >
That last line should end the HTML comment, like this:
... ORDER BY column name ASC, DESC columnB-> < body / > < / html >
However, since the higher the sign is missing after the double hyphen, the comment remains open.
He was present in 2.1 (released December 15, 2009) and is also in section 2.1.1 (released March 1, 2010).It has been like that since Carl and I wrote this. Good fishing. It is set in the sources right now. Everything we push ended following it will be fixed.
-kris -
Customize the operator for the SQL command
With JDeveloper 12.1.3, I created a search form "Panel with ADF Query Table". After having specified the search parameters, the SQL that is subject to the MSSQL root command generates the following error message:
< oracle.adf.controller > < Utils > < buildFacesMessage > < ADF: addition of the following JSF error: incorrect syntax [FMWGEN] [SQLServer JDBC Driver] [SQL Server] close to ' |'. >
java.sql.SQLException: incorrect syntax [FMWGEN] [SQLServer JDBC Driver] [SQL Server] close to ' |'.
Here is the part of SQL code that is the question:
WHERE (((city AS (?) || '%')) AND (State AS (?) || '%') ) ) ) )
Since MSSQL does not accept the "|" as an operator is valid, an error message is generated. MSSQL expects the CONCAT function or operator ' + '. Is it possible and easy to configure JDeveloper for change the operator of ' | ' to the CONCAT function?
OK, your settings are looking as it should.
You have two options to work around the problem.
(1) use your own sql generator, as shown here http://www.jobinesh.com/2013/02/customizing-sql-builder-class.html
(2) modify the sql code generated for the START WITH operator generate the right sql for sql server code. For this, you can override the method getViewCriteriaItem() as shown here https://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/
Timo
-
Hi I need help with my sql commands please.
1. build a query to list the name of the Department with pay the lowest.
2.construct a query to list the personnel number of the Manager (without duplicates) for managers who make more than twice the average salary of their employees
(Note that not all managers have a function of MANAGER).
I just need some advice please
Published by: 888669 on October 28, 2011 10:36888669 wrote:
I had the min() function before and I got a message error "function group is nested too deeply.Select dname, sum (sal) of the Department of inner join emp = dept.deptno emp.deptno group of dname with min (sum (sal));
Try:
select ... from .... group by deptno having sum(sal) <= ALL (SELECT sum(sal) from emp group by deptno)
-
How to write the sql command in the batch file
Jin
I m using oracle 9i on windows. I want to know how I can write the sql on the command file command. I want to use a batch file to use the sql like shutdowm command & start command and any select command too.
so please tell how can I do?
thxsTried looking for what he superdba.
Can't connect to sqlplus using sys using a batch file
HTH
Aman... -
Error: ORA-00911: invalid character. Where is the character?
Hi all
As I wrote in the topic, I wrote the following code but I get the above error.
Could someone tell me where are the mistakes? Mainly because the console does not specify where it is.
------------------------------------------------------------------------------------------
Select case when ((select EMPRESA
of B_LISTA_EMPLEADOS
where USERNAME = 'ADMIN')) = 'IMASA.
then ((select JORNADA_ANUAL
of B_JORNADAS_Y_RATIOS
where CATEGORY = (())
Select the CATEGORY
of B_LISTA_EMPLEADOS
where USERNAME = 'ADMIN '.
))
and EMPRESA = (())
Select the EMPRESA
of B_LISTA_EMPLEADOS
where USERNAME = 'ADMIN '.
))
and ANO = "2013"
))
else 'no es UN empleado of the empresa"
end case;
like the Jornada
of B_JORNADAS_Y_RATIOS
------------------------------------------------------------------------------------------
Best regards
Hello
Is type data number JORNADA_ANUAL?
then try to_char (JORNADA_ANUAL)
-
Cannot execute the sql command line
Please someone help me trobleshooting the following error.
SQL * MORE: Relese 11.2.0.2.0 production on 19 July 2013 Fri 12-34-23
Copyright (c) 1982,2010,oracle.all rights reserved.
Enter the user name: System
Enter the password: "when I tried to enter the master password is not accept, then if I press on enter, I get the following error,
Error:
ORA - 01017:invalid username or password; connection refused
Enter the user name: System
Instead of trying to system
Enter the user name: / as sysdba
If your OS username is a member of the OSDBA Group (normally dba on ORA_DBA on Windows, Linux/Unix), you should be able to connect. When you do that, you can do what you want (you are the user SYS), for example to change password:
SQL > alter the system of the user identified by
; -
suppress the output of the sql command
Hello
is it possible that I can delete the output of a command sql in a pl/sql script? I want to only display the output of dbms_output in my file queued. I tried power off and power of the echo set termout, but I'm still getting messages like: modified etc. trigger that I would like to delete.
Thank you.LEAVE YOUR COMMENTS.
-
Error trivial Drives Me Crazy - ORA-00911: invalid character - Oracle 10 g
I have no idea where I was wrong. I get this ORA-00911: invalid character
I looked at the excerpt from tons of times, but could not find a glitch. Code appear nested into a TOAD
CREATE TABLE RoomAssociates ( roomAssociatesID NUMBER(7) , CONSTRAINT roomasso_roomassoid_pk PRIMARY KEY(roomAssociatesID) , roomID NUMBER(7) CONSTRAINT roomasso_roomid_nn NOT NULL , CONSTRAINT roomasso_roomid_fk FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE , roomFacilityID NUMBER(7) CONSTRAINT roomasso_roomfid_nn NOT NULL , CONSTRAINT roomasso_roomfid _fk FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID) , enSuitID NUMBER(7) CONSTRAINT roomasso_ensuitid_nn NOT NULL , CONSTRAINT roomasso_ensuitid_fk FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID) );
Now, this will work:
CREATE TABLE RoomAssociates ( roomAssociatesID NUMBER(7) , CONSTRAINT roomasso_roomassoid_pk PRIMARY KEY(roomAssociatesID) , roomID NUMBER(7) CONSTRAINT roomasso_roomid_nn NOT NULL , CONSTRAINT roomasso_roomid_fk FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE , roomFacilityID NUMBER(7) CONSTRAINT roomasso_roomfid_nn NOT NULL , CONSTRAINT roomasso_roomfid_fk FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID) , enSuitID NUMBER(7) CONSTRAINT roomasso_ensuitid_nn NOT NULL , CONSTRAINT roomasso_ensuitid_fk FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID) );
The error is here:
CONSTRAINT roomasso_roomfid _fk
Better formatting:
CREATE TABLE RoomAssociates ( roomAssociatesID NUMBER(7), CONSTRAINT roomasso_roomassoid_pk PRIMARY KEY(roomAssociatesID), roomID NUMBER(7) CONSTRAINT roomasso_roomid_nn NOT NULL, CONSTRAINT roomasso_roomid_fk FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE, roomFacilityID NUMBER(7) CONSTRAINT roomasso_roomfid_nn NOT NULL, CONSTRAINT roomasso_roomfid_fk FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID), enSuitID NUMBER(7) CONSTRAINT roomasso_ensuitid_nn NOT NULL, CONSTRAINT roomasso_ensuitid_fk FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID) );
Max
[My Italian blog Oracle | http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]Published by: Massimo Ruocchio, December 19, 2009 12:05 AM
Maybe you are looking for
-
I opened my calendar and thunderbird and all my events disappeared. I can not even add a new event... Can I retrieve my calendar and events? Thank you
-
For some reason any on this machine in particular, when I type a partial name in the address box, I redirected to a place called a lot.com. They then try to give me the results of what I typed in the address bar, as if it was a search on their web si
-
the pointer to int as a parameter in the dll, but the value of parameter variation doesnot
Hello, I have a function in the dll as void set(int * a) {(* a) = 99 ;}} And I connect an int32 to the dll. But when I run the vi, the Int32 value does not change. As the picture below:
-
Facing problem after completing an operation taking a lot of time to stop running vi.
Hello I am facing a problem that after having completed an operation of its many take the time to stop the vi. Means when an operation are in fact that its application and save the file after you have saved the file vi should be stopped but before he
-
Windows 7 cannot connect to World Of Warcraft
Hi there, my friend recently bought a new laptop with Windows 7 running on this topic from Dell. The new OS is nice and smooth, but something with this set-up allow him to connect to WoW, when you sign in. He has been able to download patches and upd