to DECLARE * ERROR at line 1: ORA-00900: invalid SQL statement
This works fine when I use the System user to create a schema and then run this script.When I create another user with grant connect, resources, create view permissions I get this error:
DECLARE
*
ERROR on line 1:
ORA-00900: invalid SQL statement
ORA-06512: at...
DECLARE
ID MY_TABLE.ID%TYPE;
tNom my_table. % TABLENAME TYPE;
PName MY_TABLE_TWO. PROPERTYNAME % TYPE;
CURSOR c1 IS
SELECT distinct evt.id, evt. TABLENAME, vid.propertyname
FROM my_table evt, vid MY_TABLE_TWO
WHERE the evt. COL_1 = 1
AND evt. COL_2 = vid. COL_2
and not exists (select facts FROM MY_TABLE_THREE 1)
where evt.id = facts.eventid and facts.displayname = vid.propertyname);
BEGIN
OPEN c1;
LOOP
FETCH c1 INTO id, tNom, pname;
OUTPUT WHEN c1% NOTFOUND;
INSERT INTO MY_TABLE_THREE (ID, COLUMNLENGTH)
VALUES (S_ANALYTICS_SEQUENCE.nextval, 255);
RUN IMMEDIATELY 'ALTER TABLE ' | tNom | 'Add ' | PName | ' _ NVARCHAR2 (255);
END LOOP;
CLOSE c1;
END;
Hello
Maybe missing a privilege. If I were you, I'll try this first:
DECLARE
id MY_TABLE.ID%TYPE;
tname MY_TABLE.TABLENAME%TYPE;
pname MY_TABLE_TWO.PROPERTYNAME%TYPE;
CURSOR c1 IS
SELECT DISTINCT evt.id,
evt.TABLENAME,
vid.propertyname
FROM MY_TABLE evt,
MY_TABLE_TWO vid
WHERE evt.COL_1 = 1
AND evt.COL_2 = vid.COL_2
AND NOT EXISTS (SELECT 1
FROM MY_TABLE_THREE facts
WHERE evt.id = facts.eventid
AND facts.displayname = vid.propertyname);
BEGIN
OPEN c1;
LOOP
FETCH c1
INTO id, tname, pname;
EXIT WHEN c1%NOTFOUND;
INSERT INTO MY_TABLE_THREE
(ID,
COLUMNLENGTH)
VALUES
(S_ANALYTICS_SEQUENCE.NEXTVAL,
255);
DBMS_OUTPUT.put_line('ALTER TABLE ' || tname || ' add ' || pname ||
'_ NVARCHAR2(255)');
--EXECUTE IMMEDIATE 'ALTER TABLE ' || tname || ' add ' || pname || '_ NVARCHAR2(255)';
END LOOP;
CLOSE c1;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.put_line(SQLERRM);
END;
/
Using this approach, you can see the sentences to run without run, I also added an exception block.
Kind regards
Tags: Database
Similar Questions
-
I'm getting "ORA-00900: invalid SQL statement" error. ?
I installed oracle 11 GR 2. and 'DBMS_METADATA_DIFF.COMPARE_ALTER ('TABLE', 'TBL_A', 'TBL_A','USER1 ','USER2 ')"to see the result as below, but I'm" ORA-00900: invalid SQL statement "error. Any idea?
I use:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL > desc user1.tbl_a
Name Null? Type
----------------------------------------- -------- ----------------------------
FIELD_A1 NOT NULL NUMBER
FIELD_A2 VARCHAR2 (20)
FIELD_A4 NOT NULL NUMBER (5.2)
FIELD_A5 VARCHAR2 (10)
FIELD_A6 NOT NULL NUMBER (2)SQL > desc user2.tbl_a
Name Null? Type
----------------------------------------- -------- ----------------------------
FIELD_A1 NOT NULL NUMBER
FIELD_A2 VARCHAR2 (50)
FIELD_A3 DATE
FIELD_A4 NUMBER (5.2)
FIELD_A5 NOT NULL VARCHAR2 (10)SQL > select dbms_metadata_diff.compare_alter ('TABLE', 'TBL_A', 'TBL_A', 'USER1', 'USER2') of double
expected result:
DBMS_METADATA_DIFF.COMPARE_ALTER ('TABLE', 'TBL_A', 'TBL_A', 'U1', 'U2')
--------------------------------------------------------------------------------
ALTER TABLE 'U1 '. "" ADD TBL_A "(DATE OF THE"FIELD_A3")
ALTER TABLE 'U1 '. "" TBL_A "DROP ("FIELD_A6")
ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ("FIELD_A2' VARCHAR2 (50))
ALTER TABLE 'U1 '. "" TBL_A ' CHANGE ("FIELD_A4" NUMBER (5.2) DEFAULT 0)
ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ('FIELD_A4' NULL)
ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ('FIELD_A5' ACTIVATE NOT NULL)Thanks for the reply rp,
I got the result using "select dbms_metadata_diff.compare_alter ('TABLE', 'TBL_A', 'TBL_A', 'USER1', 'USER2') from dual"
-
error SQL ORA-00900: invalid SQL statement
Hi all
I'm new to sql and I'm trying to solve this problem, I have here.
When I run this query (1) I get this message: ORA-00900: invalid SQL statement
Query: 1
WITH t1
AS (SELECT CID,
TYPE,
TO_CHAR)
TO_DATE (' 00:00:00 ', 'HH24:MI:SS')
+ (lg_end_time - lg_start_time).
Call_time 'HH24:MI:SS'),
ROW_NUMBER)
COURSES (SORTING CID CID NULLS FIRST PARTITION)
AS call_id1
OF test_1
)
SELECT SUM (call_time)
FROM t1;
output:
I get the error: ORA-01722: invalid number
table structure:
Select * form test_1;
CID TYPE LG_END_TIME LG_START_TIME
1508643 expedition 2012/12/03 14:05 2012/12/03 14:02
1508643 treatment 2012/12/03 14:00 03/12/2012 14:00
1508643 initiation 2012/12/03 14:00 03/12/2012 14:00
1508662 expedition 2012/12/03 14:18 2012/12/03 14:16
1508662 initiation 2012/12/03 14:01 03/12/2012 14:01
1508662 treatment 2012/12/03 14:02 03/12/2012 14:01
1508643 expedition 2012/12/03 14:02 03/12/2012 14:00
1508662 expedition 2012/12/03 14:16 2012/12/03 14:02
Thanks for your helpI think this example might help.
SQL> select decode(call_id1,99,null,cid) cid, 2 decode(call_id1,99,null,type) type, 3 decode(call_id1,99,null,to_char(call_time,'hh24:mi:ss')) call_time, 4 decode(call_id1,99,null,substr(call_id1,1,5)) call_id1, 5 total_time 6 from (select cid, 7 type, 8 call_time, 9 call_id1, 10 total_time 11 from (select cid, 12 type, 13 call_time, 14 call_id1, 15 null total_time 16 from (SELECT CID , 17 TYPE, 18 to_date(TO_CHAR (TO_DATE ('00:00:00', 'HH24:MI:SS') + 19 (lg_end_time - lg_start_time),'HH24:MI:SS'),'HH24:MI:SS') call_time, 20 ROW_NUMBER () OVER (PARTITION BY CID ORDER BY CID NULLS FIRST) AS call_id1 21 FROM test_1 ) t1 22 union all 23 select cid, 24 null type, 25 null call_time, 26 99 call_id1, 27 lpad(hours,2,'0')||':'||lpad(minutes,2,'0')||':'||lpad(seconds,2,'0') total_time 28 from (select cid, 29 sum(to_number(to_char(call_time,'hh24'))) + 30 trunc((sum(to_number(to_char(call_time,'mi'))) + 31 (trunc(sum(to_number(to_char(call_time,'ss')))/60)))/24) hours, 32 sum(to_number(to_char(call_time,'mi'))) + 33 (trunc(sum(to_number(to_char(call_time,'ss')))/60)) minutes, 34 (sum(to_number(to_char(call_time,'ss'))) - 35 ((trunc(sum(to_number(to_char(call_time,'ss')))/60)) * 60)) seconds 36 from (SELECT CID , 37 TYPE, 38 to_date(TO_CHAR (TO_DATE ('00:00:00', 'HH24:MI:SS') + 39 (lg_end_time - lg_start_time),'HH24:MI:SS'),'HH24:MI:SS') call_time, 40 ROW_NUMBER () OVER (PARTITION BY CID ORDER BY CID NULLS FIRST) AS call_id1 41 FROM test_1 ) t1 42 group by cid) ) 43 order by cid, call_id1 ); CID TYPE CALL_TIME CALL_ID1 TOTAL_TIME ---------------------------------------- -------------------- --------- -------- ---------- 1508643 Dispatching 00:02:06 1 1508643 Initiation 00:00:00 2 1508643 Treatment 00:00:39 3 1508643 Dispatching 00:02:50 4 00:05:35 1508662 Treatment 00:01:03 1 1508662 Initiation 00:00:00 2 1508662 Dispatching 00:13:17 3 1508662 Dispatching 00:02:43 4 00:17:03 10 rows selected SQL>
-
ORA-00900 invalid SQL statement
Hello
I'm under code below
Start
for c_masteraccntfirmcustid in (select regexp_substr (substr (substr ("AND WB0. MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091)', instr ("AND WB0. MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091) ',' (()) + 1), length 0, (substr ("AND WB0. MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091)', instr ("AND WB0. MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091) ',' (()) + 1))-1), "[^,] (+', 1, level) col_val of the double connection by regexp_substr (substr (substr ("AND WB0. " MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091)', instr ("AND WB0. MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091) ',' (()) + 1), length 0, (substr ("AND WB0. MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091)', instr ("AND WB0. MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091) ',' (()) + 1))-1), "[^,] (+', 1, level) is not null)"
loop
dbms_output.put_line (c_masteraccntfirmcustid.col_val);
-dbms_output.put_line ('Hi');
end loop;
end;This gives me the Ora-900
but under work
Select regexp_substr (substr (substr ("AND WB0. MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091)', instr ("AND WB0. MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091) ',' (()) + 1), length 0, (substr ("AND WB0. MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091)', instr ("AND WB0. MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091) ',' (()) + 1))-1), "[^,] (+', 1, level) col_val of the double connection by regexp_substr (substr (substr ("AND WB0. " MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091)', instr ("AND WB0. MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091) ',' (()) + 1), length 0, (substr ("AND WB0. MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091)', instr ("AND WB0. MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091) ',' (()) + 1))-1), "[^,] (+', 1, level) is not null"
The requirement is AND WB0. MASTERACCNTFIRMCUSTID (742254777, 2531215, 2568091), this string I need
742254777
2531215
2568091
one by one and then I'll create a dynamic SQL for each of these values.
Could you please help?
Thank you
Patricia
I have run your PL/SQL block, but do not make a mistake.
What is your version of the database?
BEGIN FOR c_masteraccntfirmcustid IN (SELECT regexp_substr(SUBSTR(SUBSTR('AND WB0.MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091)', instr('AND WB0.MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091)','(')+1), 0, LENGTH(SUBSTR('AND WB0.MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091)', instr('AND WB0.MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091)','(')+1))-1),'[^,]+', 1, level) col_val FROM dual CONNECT BY regexp_substr(SUBSTR(SUBSTR('AND WB0.MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091)',instr('AND WB0.MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091)','(')+1), 0, LENGTH(SUBSTR('AND WB0.MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091)',instr('AND WB0.MASTERACCNTFIRMCUSTID in (742254777, 2531215, 2568091)','(')+1))-1), '[^,]+', 1, level) IS NOT NULL ) LOOP dbms_output.put_line(c_masteraccntfirmcustid.col_val); --dbms_output.put_line('Hi'); END LOOP; END;
-
ORA-00900: the SQL statement invalid when you run for immediate assistance.
Hello
I write code simple db is 9.2.0.8
Trying to collect statistics of the table with the selected partition but mess up something with... something :)create or replace procedure gather_part_stats(p_schema in varchar2, p_table in varchar2) as l_quarter varchar2(8) := to_char(sysdate, '"Y"YYYY"_Q"q') ; l_sql varchar2(2000) := 'exec dbms_stats.gather_table_stats(:schema, :table, method_opt => ''for all columns size 1'' , cascade => true , estimate_percent => 1 , granularity => ''PARTITION'', partname=>:part);'; begin dbms_output.put_line('l_quarter: ' || l_quarter); dbms_output.put_line(l_sql); execute immediate l_sql using in p_schema, in p_table, in l_quarter ; end; /
I use use to avoid sql injection, please advice.
Error is:
SQL > gather_part_stats exec ('TEST', 'TEST');
l_quarter: Y2012_Q2
exec dbms_stats.gather_table_stats (: schema,: table, method_opt = > ' for all columns size 1', cascade = > true, estimate_percent = > 1, granularity = > 'PARTITION', partname = >: part);
BEGIN gather_part_stats ('TEST', 'TEST'); END;
*
ERROR on line 1:
ORA-00900: invalid SQL statement
ORA-06512: at the 'INSTALL '. GATHER_PART_STATS', line 8
ORA-06512: at line 1
Concerning
GregGYou must use the dynamic PL/SQL
create or replace procedure gather_part_stats(p_schema in varchar2, p_table in varchar2) as l_quarter varchar2(8) := to_char(sysdate, '"Y"YYYY"_Q"q') ; l_sql varchar2(2000) := 'begin dbms_stats.gather_table_stats(ownname=>:schema, tabname=>:table, method_opt => ''for all columns size 1'' , cascade => true , estimate_percent => 1 , granularity => ''PARTITION'', partname=>:part); end;'; begin dbms_output.put_line('l_quarter: ' || l_quarter); dbms_output.put_line(l_sql); execute immediate l_sql using in p_schema, in p_table, in l_quarter ; end; /
-
00900 invalid SQL statement error
I am myself to write stored procedures, teacher in TOAD 10.5 with Oracle 10 g. I get the error ORA-00900: invalid SQL statement. Here's the code, cut to the minimum sample size strip. I don't see where I'm doing something wrong.
If I cut out the slider (take it down to just "Begin" and "End"), it runs, but I don't see anything wrong with the cursor.
Any ideas?
CREATE OR REPLACE PROCEDURE IN_PROCESS_CASES_BOS
IS
V_HELLO VARCHAR2 (10);
CURSOR C_MAIN IS
SELECT 'HELLO' FROM DUAL;
BEGIN
C_MAIN OPEN;
LOOP
EXTRACT THE C_MAIN IN V_HELLO;
WHEN THE OUTPUT C_MAIN % NOTFOUND;
END LOOP;
CLOSE C_MAIN;
END;
END IN_PROCESS_CASES_BOS;
/select * from user_errors; NAME TYPE SEQUENCE LINE POSITION ------------------------------ ------------ ---------- ---------- ---------- TEXT -------------------------------------------------------------------------------- ATTRIBUTE MESSAGE_NUMBER --------- -------------- IN_PROCESS_CASES_BOS PROCEDURE 1 21 1 PLS-00103: Encountered the symbol "END" ERROR 103
You have an extra END; Remove it and the procedure compiles and runs.
-
Hi all
DECLARE
TYPE (t1) IS RENDERING
v_ename emp.ename%TYPE,
v_sal emp.sal%TYPE
);
TNom TYPE IS an ARRAY OF t1
INDEX OF DIRECTORY;
v_tname tNom;
BEGIN
BECAUSE me IN v_tname. FIRST... v_tname. LAST
LOOP
Dbms_output.put_line (v_tname (i) .v_ename |) '' || .v_sal v_tname (i));
END LOOP;
END;
You want to ask why I used the SLIDER? -We can use in BULK COLLECT with LIMIT clause with the cursor
We also directly in bulk collect into collections as below:
DECLARE
TYPE (t1) IS RENDERING
v_ename emp.ename%TYPE,
v_sal emp.sal%TYPE
);
TNom TYPE IS an ARRAY OF t1
INDEX OF DIRECTORY;
v_tname tNom;
BEGIN
SELECT ename, sal BULK COLLECT INTO v_tname FROM emp;
BECAUSE me IN v_tname. FIRST... v_tname. LAST
LOOP
Dbms_output.put_line (v_tname (i) .v_ename |) ' ' || .v_sal v_tname (i));
END LOOP;
END;
/
-
ERROR at line 1: ORA-00920: invalid relational operator
Hello;
I get this error with this code:
Help me please, cordiallyEXECUTE IMMEDIATE 'SELECT COUNT(*) FROM ' || in_table_name || ' WHERE ' || in_column1 || ' like (''%'|| in_value1 ||'%'') AND '|| in_column2 || 'like (''%'|| in_value2 ||'%'') AND ' || in_column3 || ' like (''%' || in_value3 ||'%'') AND ROWNUM = 1' INTO ln_test;
you are missing a space in this part:
in_column2 || 'like (''%'||
should be
in_column2 || ' like (''%'||
-
ORA-00900: invalid SQL ORA-06512 statement: on line 57
I Wast trying to execute this statement
EXECUTE immediate ' host (mkdir'| direcotry |') ' ;
My destination path directory. I can't run a host command in plsqlassuming that your database is installed on the windows platform and you try to create the directory is on the same server. try to create a batch file that takes parameters and use the DBMS_SCHEDULER to run an external command.
Batch file name make.bat
@echo off mkdir %1
your pl/sql script
BEGIN dbms_scheduler.create_job(job_name => 'AUTO_CREATE_DIRECTORY', job_type => 'EXECUTABLE', job_action => 'c:\myscript\make.bat', number_of_arguments => 1, start_date => SYSTIMESTAMP, enabled => FALSE, comments => 'Auto Create Directory'); dbms_scheduler.set_job_argument_value('AUTO_CREATE_DIRECTORY', 1, argument_value=> 'mydir'); dbms_scheduler.enable('AUTO_CREATE_DIRECTORY'); END; /
Note: not tested
-
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 -
HI during startup of the database of the following errors is. Please help solve the problem.
SQL > alter database open;
change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.
============================================================
Please see the alerts log entries
--------------------------------------------------------------------------------------------------------------------------------
Commissioning:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With the options of partitioning, OLAP, Data Mining and Real Application Testing.
Using parameters in spfile D:\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEATTNDPRD server-side. ORA
Parameters of the system with default values:
process = 400
sessions = 624
memory_target = 4G
control_files = 'D:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB0M_. CTL.
control_files = 'C:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB13_. CTL.
DB_BLOCK_SIZE = 8192
compatible = "11.2.0.0.0."
log_archive_format = "ARC%S_%R.%T."
db_create_file_dest = 'D:\oracle\oradata. '
db_create_online_log_dest_1 = "D:\oracle\oradata".
db_create_online_log_dest_2 = "C:\oracle\oradata".
db_recovery_file_dest = 'C:\oracle\oradata\flash_area. '
db_recovery_file_dest_size = 8G
undo_tablespace = 'UNDOTBS1.
Remote_login_passwordfile = "EXCLUSIVE."
db_domain = «»
dispatchers = "(PROTOCOL=TCP) (SERVICE = ATTNDPRDXDB)" "
audit_file_dest = "D:\APP\ADMINISTRATOR\ADMIN\ATTNDPRD\ADUMP".
AUDIT_TRAIL = 'DB '.
db_name = "ATTNDPRD".
open_cursors = 300
diagnostic_dest = "D:\APP\ADMINISTRATOR".
Sun 24 May 13:43:09 2015
PMON started with pid = 2, OS id = 5792
Sun 24 May 13:43:09 2015
VKTM started with pid = 3, OS id = 6500 high priority
VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms
Sun 24 May 13:43:09 2015
GEN0 started with pid = 4, OS id = 13072
Sun 24 May 13:43:09 2015
DIAG started with pid = 5, OS id = 1424
Sun 24 May 13:43:09 2015
DBRM started with pid = 6, OS id = 8240
Sun 24 May 13:43:09 2015
PSP0 started with pid = 7, OS id = 2980
Sun 24 May 13:43:09 2015
DIA0 started with pid = 8, OS id = 12956
Sun 24 May 13:43:09 2015
MA started with pid = 9, OS id = 13356
Sun 24 May 13:43:09 2015
DBW0 started with pid = 10, OS id = 14248
Sun 24 May 13:43:09 2015
DBW1 started with pid = 11, OS id = 17900
Sun 24 May 13:43:09 2015
LGWR started with pid = 12, OS id = 5564
Sun 24 May 13:43:09 2015
CKPT started with pid = 13, OS id = 16736
Sun 24 May 13:43:09 2015
SMON started with pid = 14, OS id = 14068
Sun 24 May 13:43:09 2015
RECCE has started with pid = 15, OS id = 16288
Sun 24 May 13:43:09 2015
MMON started with pid = 16, OS id = 10884
commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...
commissioning or shared server 1...
Environment ORACLE_BASE = D:\app\Administrator
Sun 24 May 13:43:09 2015
ALTER DATABASE MOUNT
Sun 24 May 13:43:09 2015
MMNL started with pid = 17, OS id = 16128
Mount of redo thread 1, with mount id 3325657453
Database mounted in exclusive Mode
Disabled lost write protect
Completed: ALTER DATABASE MOUNT
Sun 24 May 13:43:23 2015
change the database open
Sun 24 May 13:43:23 2015
LGWR: FROM PROCESS ARCH
Sun 24 May 13:43:23 2015
Arc0 started with pid = 21, OS id = 10084
Arc0: Started archiving
LGWR: FROM PROCESS ARCH COMPLETE
ARC0: FROM PROCESS ARCH
Sun 24 May 13:43:24 2015
Arc1 started with pid = 22, OS id = 18400
Sun 24 May 13:43:24 2015
ARC2 started with pid = 23, OS id = 17280
Arc1: Started archiving
ARC2: Started archiving
Arc1: become the "no FAL' ARCH
Arc1: become the "no SRL" ARCH
ARC2: Become the heartbeat ARCH
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.
************************************************************************
You have choice to free up space in the recovery area:
1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard
then consider changing POLICY of DELETE ARCHIVELOG RMAN.
2 back up files on a tertiary device such as a tape with RMAN
SAFEGUARDING RECOVERY AREA command.
3. Add space drive and increase the db_recovery_file_dest_size setting to
reflect the new space.
4 remove the unnecessary files using the RMAN DELETE command. If a service
the system control has been used to remove the files, and then use the RMAN DUPLICATION and
Commands DELETE has EXPIRED.
************************************************************************
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-19809: limit exceeded for file recovery
ORA-19804: cannot recover disk 44571136 bytes limit 8589934592 space
ARCH: 19809 error creating archive log file to ' C:\ORACLE\ORADATA\FLASH_AREA\ATTNDPRD\ARCHIVELOG\2015_05_24\O1_MF_1_10343_%U_. ARC'
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-16038: log 2 # 10343 sequence can be archived
ORA-19809: limit exceeded for file recovery
ORA-00312: wire 2 1 online journal: ' D:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYD8B_. JOURNAL"
ORA-00312: wire 2 1 online journal: ' C:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYDF6_. JOURNAL"
USER (ospid: 10400): put an end to litigation because of the error 16038
Sun 24 May 13:43:24 2015
ARC3 started with pid = 24, OS id = 2188
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_arc2_17280.trc file:
ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.
************************************************************************
You have choice to free up space in the recovery area:
1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard
then consider changing POLICY of DELETE ARCHIVELOG RMAN.
2 back up files on a tertiary device such as a tape with RMAN
SAFEGUARDING RECOVERY AREA command.
3. Add space drive and increase the db_recovery_file_dest_size setting to
reflect the new space.
4 remove the unnecessary files using the RMAN DELETE command. If a service
the system control has been used to remove the files, and then use the RMAN DUPLICATION and
Commands DELETE has EXPIRED.
************************************************************************
Instance of stopped by USER, pid = 10400
--------------------------------------------------------------------------------------------------------------------------
Regarding
Ngoyi
Hello
Now it works very well... with following
--------------------------------------------------
using sqlplus
- Startup mount
- ALTER database noarchivelog;
- ALTER database open;
-------------------------------------------------------------------------------
Concerning
Ngoyi
-------------------------------------------------
-
error: error at line 1: ORA-01503: CREATE CONTROLFILE failed
Hello
I'm the sinister scene I enter my database in nomount, but when I run create controlfile command
It shows me an error:
My controlfile content is:
CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 30
MAXINSTANCES 1
MAXLOGHISTORY 292
LOGFILE
GROUP 1 ' / test/opt/102/oradata/test/redo1.log' 100M, SIZE
GROUP 2 ' / test/opt/102/oradata/test/redo2.log' 100M, SIZE
GROUP 3 ' / test/opt/102/oradata/test/redo3.log' SIZE 100 m
DATA FILE
' / test/opt/102/oradata/test/system.dbf',
' / test/opt/102/oradata/test/undotbs1.dbf',
' / test/opt/102/oradata/test/sysaux.dbf',
' / test/opt/102/oradata/test/users01.dbf'
CHARACTER SET WE8ISO8859P1
;
After running this, I got the error below:
CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
*
ERROR on line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in the identification of file ' / test/opt/102/oradata/test/system.dbf'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3
what goes wrong with this script.Your disaster recovery operation became a disaster it seems :)
Try copying the available backup files and repeat the same thing.
Kind regards
CSMPublished by: CSM. DBA on July 30, 2012 11:50
-
Error at line 1: ORA-01503: creating the control file has no
Hello
I do disaster when I create controlfile by trace, I got an error
CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 30
MAXINSTANCES 1
MAXLOGHISTORY 292
LOGFILE
GROUP 1 ' / test/opt/102/oradata/test/redo1.log' 100M, SIZE
GROUP 2 ' / test/opt/102/oradata/test/redo2.log' 100M, SIZE
GROUP 3 ' / test/opt/102/oradata/test/redo3.log' SIZE 100 m
DATA FILE
' / test/opt/102/oradata/test/system.dbf',
' / test/opt/102/oradata/test/undotbs1.dbf',
' / test/opt/102/oradata/test/sysaux.dbf',
' / test/opt/102/oradata/test/users01.dbf'
CHARACTER SET WE8ISO8859P1
;
CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
*
ERROR on line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in the identification of file ' / test/opt/102/oradata/test/system.dbf'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3
I wrote something wrong?
Thank youI understand, but I couldnot restoration l datafile by rman restore command coz base not at the stage of editing!
Appear you are not using the rman backup catalog and controlfile to help register rman backup.
in this case if you recreate the controlfile to way you will lose all your information backup of controlfile.
better restore controlfile from piece of backup or AutoSave. as restore controlfile from "" -
Error Ora-600 - sql >; create spfile from pfile - ERROR at line 1: ORA-00600
Hello
I am facing the following question in the database pending,
Oracle 10g
SQL > create spfile from pfile;
Create spfile from pfile
*
ERROR on line 1:
ORA-00600: internal error code, arguments: [ksplrmfn1], [3059], [3059], [], [],.
[], [], []
After you have added the db_file_name_convert and log_file_name_convert in pfile. If I remove these two spfile parameters is created successfully.
Thank you.Here's the syntax exactly who i had given.
db_file_name_convert = "/ u02/proddata", "/ u02/proddata ', ' / u03/proddata", "proddata1/u04 /, ' / u04/proddata ', ' / u04/proddata '
log_file_name_convert = "/ u02/proddata", "/ u02/proddata ', ' / u03/proddata", "proddata1/u04 /, ' / u04/proddata ', ' / u04/proddata 'Carefully, see apostrophe ending 4th missed rope... Changed as below. Use it and try again :)
db_file_name_convert = "/ u02/proddata", "/ u02/proddata", "/ u03/proddata", "/ u04/proddata1", "/ u04/proddata", "/ u04/proddata.
log_file_name_convert = "/ u02/proddata", "/ u02/proddata", "/ u03/proddata", "/ u04/proddata1", "/ u04/proddata", "/ u04/proddata.Close if answered threads
-
Error processing request. ORA-06502: PL/SQL: digital error or value OK
Hello
I want to open a session in an APEX application using the IE 8 browser, but I can't because this error:
Error Error processing request. ORA-06502: PL/SQL: digital error or value Ok I can run this app with Chrome or Mozilla, but I need to open it with IE.
Can you please tell me how should I solve this problem?
Thank you
It is a problem with your version of APEX that you use... There was a patch released about 6 months ago... or you can just upgrade to the latest version. I also had this problem, and there are several similar topics in this forum about the exact problem and at least the a precise details on the patch/fix.
Maybe you are looking for
-
How to transfer photos from my iPhone to my iPad, put them in albums and then remove them from my iPhone
-
Small portion of the MacBook screen is yellow, please help.
I have a 2012 end 13-inch MacBook Pro Retina and theres a big yellow tinted rectangle on the left side of my screen that is about 1.5 inches wide and goes straight up and down. The slightly yellow zone is always sensitive and I was wondering if someo
-
Satellite A300 - 1 DG: where to find drivers for Win 7 x 64
Hello I have Windows 7 x 64 by MSDN. Now I'm looking for drivers.Where can I find them? Toshiba Satellite A300-1 DGModel No. PSAJ4E
-
Running XP: express email outlook stuck in Outbox. can receive e-m, but not send
emails stuck in Outbox; can receive e-m but not send. Open the Outbox, then opening 'stuck' in the email, then hit 'send' doesn't work anymore, even if she succeeded in the first episodes of "stuck in the Outbox. Need to send answers to emails! TH
-
Why my computer wanting never dick perfom acheck had us than before
When I started my computer got a message that he needed a check disk or I could cancel it by pressing any key and the time allowed to type the key increasded each time? I have never received this message >