11gR2 Reference Guide:
"SQL Statement Length Maximum: length of statements 64 K maximum; particular tools may impose
lower limits"
User Profile
Collapse
Profile Sidebar
Collapse
magicwand
Last Activity: Dec 28 '13, 04:33 PM
Joined: Mar 18 '10
Location: Vienna, Austria
-
magicwand replied to some of my data is getting overwritten by the update query i want to save my old datain Oraclewrite a BEFORE UPDATE trigger that copies the old value(s) into a history table with identical structure (plus update - date)Leave a comment:
-
dila puteh,
you have a syntax error (one comma too much) in the line
instead it should readCode:Ord_ID VARCHAR2(10) CONSTRAINT ORDER_PHARMACY_Ord_ID_pk PRIMARY KEY, CONSTRAINT Ord_ID_nn NOT NULL,
Code:Ord_ID VARCHAR2(10) CONSTRAINT ORDER_PHARMACY_Ord_ID_pk PRIMARY KEY CONSTRAINT Ord_ID_nn NOT NULL,
Leave a comment:
-
Code:select min(dat) from ( select min(<date_col_in_tbl_1>) dat from <tbl_1> union select min(<date_col_in_tbl_2>) dat from <tbl_2> union select min(<date_col_in_tbl_3>) dat from <tbl_3> ) ;Leave a comment:
-
magicwand replied to i inherited an windows oracle box. when i try to login to database, i get 12560, etcin OracleIf you don't find your init<SID>.ora, you can produce it after Step 1.):
Code:startup nomount; create pfile from spfile;
Leave a comment:
-
magicwand replied to i inherited an windows oracle box. when i try to login to database, i get 12560, etcin OracleI doubt that.Code:The database services are currently running
You are documenting a couple of mutually exclusive error messages:
ORA-12560 ("TNS:protoc ol error") when trying a non-SQL*Net connect like "sqlplus / as sysdba" on Windows boxes usually indicates that the (Windows-) service (Usually called OracleService<S ID> ) is not started.
ORA-1033 ("ORACLE initialization...Leave a comment:
-
-
probably something like "ON DELETE NO ACTION is no combination of keywords Oracle supports. Please look up the CREATE TABLE statement ..."Code:and the error is ...
Leave a comment:
-
Try to start up the srvmgrl, connect internal and the shutdown abort
BTW: If you are using 7.3.4 you have defintely more big problems than just this one ...Leave a comment:
-
PL/SQL calls don't give any feedback like "PL/SQL procedure successfully completed".
This is done by SQL*Plus when you execute a PL/SQL procedure call from within a SQL script.
In SQL*Plus you can switch it off by
Code:set feedback off
Leave a comment:
-
Code:select * from ( <your_select_statement> ORDER BY <your_criteria> DESC ) WHERE rownum < <num_of_required_records> + 1;Leave a comment:
-
what's the characterset of your database ?
Code:select value from from v$nls_parameters where parameter='NLS_CHARACTERSET';
Leave a comment:
-
ananthaisin,
can you post the output of:
edited:Code:SELECT COUNT(*) FROM AUTO_SH_LOAD WHERE TRUNC(LOADDATE) = TRUNC(SYSDATE) - 1 AND FILEGROUP IN ( 'CHPYMT','CHP2P' ,'CHREFL','CHSTAT' ,'CHADJ' ,'CHCLCR','CHSFEE') ;
I forgot, the output of
...Code:select count(*) from (
Leave a comment:
-
lakshmikilai,
that's how you do it:
Logon as the OS user owning the oracle software and type:
sqlplus / as sysdba
and reset any password you like with:
alter user <username> identified <new_password >;Leave a comment:
-
If that's the entire output you got,...Code:Export file created by EXPORT:V09.02.00 via conventional path Warning: the objects were exported by PLUS10, not by you import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set export client uses US7ASCII character set (possible charset conversion). importing PLUS10's objects into SYSTEM Import terminated successfully without warnings.
Leave a comment:
-
Same problem as with your last posting:
If you don't post the execution plan, noone will be able to help youLeave a comment:
-
Hi,
I didn't want the rows (that's the reason for the rownum < 1).
The important part is the "set autotrace on" which should give you the execution plan ...Leave a comment:
-
Kirian,
could you cut/paste the following code into a SQL*Plus session and post the result ?
...Code:set autotrace on SELECT * FROM DR_CONTRIBUTION_DN dn WHERE NOT EXISTS ( SELECT * FROM DR_CONTRIBUTION_PS ps WHERE (dn.ID = ps.ri_donor_id AND dn.idtype = ps.ri_donor_type AND dn.giftseqnumLeave a comment:
-
-
No activity results to display
Show More
Leave a comment: