RMAN-10006: error running SQL statement: alter session set remote_dependenc
Backups are failing with following error
RMAN-00554: initialization of internal recovery manager package failed
RMAN-12001: could not open channel default
RMAN-10008: could not create channel context
RMAN-10002: ORACLE error: ORA-00096: invalid value SIGNATURE for parameter remote_dependencies_mode, must be from among MANUAL, AUTO
RMAN-10006: error running SQL statement: alter session set remote_dependencies_mode = signature
Not able to change to signature
SQL> alter session set remote_dependencies_mode=signature;
ERROR:
ORA-00096: invalid value SIGNATURE for parameter remote_dependencies_mode, must
be from among MANUAL, AUTO
I dont see MANUAL or AUTO as valid value for this parameter (http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1175.htm#1023124) DB version is 9.2.0
Parameter type
String
Syntax
REMOTE_DEPENDENCIES_MODE = {TIMESTAMP | SIGNATURE}
Default value
TIMESTAMP
Parameter class
Dynamic: ALTER SESSION, ALTER SYSTEM
=======================================
I believe it could be because of following bug
"A PRE-PATCHED ORACLE IMAGE CAN BE INSTALLED IN MEMORY "
Refer: "https://metalink2.oracle.com/metalink/plsql/f?p=130:15:1613505143885559758::::p15_database_id,p15_docid,p15_show_header,p15_show_help,p15_black_frame,p15_font:BUG,4610411,1,1,1,helvetica"
I appreciate your effort in fixing this issue.
Edited by: user10610722 on Nov 25, 2008 4:37 PM
Hi:
It seems when you are starting RMAN it's executing some commands (one 'ALTER SESSION...'. It's seems to be a batch which has a bad value for SORT_AREA_SIZE. Find it and modify to a proper value as message shows. If you can't find start RMAN by calling directly the executable ($ORACLE_HOME/bin/rman or %ORACLE_HOME%/bin/rman.exe).
Similar Messages
-
RMAN-11003: failure during parse/execution of SQL statement: alter session
without doing any changes I have started getting the following error in the RMAN logs.
i didnt any changes related to sort_area_size but getting the error below
plz help guys
RMAN logs
=====================
connected to recovery catalog database
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of allocate command at 12/03/2007 22:00:01
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of full resync command on default channel at 12/03/2007 22:00:01
RMAN-11003: failure during parse/execution of SQL statement: alter session set sort_area_size=10485760
ORA-00068: invalid value 10485760 for parameter sort_area_size, must be between 0 and 1Hi:
It seems when you are starting RMAN it's executing some commands (one 'ALTER SESSION...'. It's seems to be a batch which has a bad value for SORT_AREA_SIZE. Find it and modify to a proper value as message shows. If you can't find start RMAN by calling directly the executable ($ORACLE_HOME/bin/rman or %ORACLE_HOME%/bin/rman.exe). -
Is it risky to use statement : "alter session set events"
Hi guys,
I am extracting data from cxml documents.
I had to run the following code "EXECUTE IMMEDIATE ('alter session set events ''31156 trace name context forever, level 2'''); " to disable the DTD validation...b4 running any xml extract function on it.
Example:
CREATE OR REPLACE FUNCTION f_test (
p_cxml IN CLOB
RETURN BOOLEAN
AS
l_payload varchar2(100);
l_cXML sys.xmltype := sys.xmltype.createXML(p_cxml);
BEGIN
EXECUTE IMMEDIATE ('alter session set events ''31156 trace name context forever, level 2''');
SELECT EXTRACTVALUE(l_cXML,'/cXML/@payloadID')
INTO l_payload
FROM DUAL;
RETURN TRUE;
DBMS_OUTPUT.PUT_LINE (l_payload);
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.PUT_LINE (SQLCODE || ' - '||SQLERRM);
RETURN FALSE;
END;
The vlaue of the parameter p_cxml could be
p_cXML clob:=
'<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.021/Fulfill.dtd">
<cXML payloadID="[email protected]"
timestamp="2000-10-12T18:39:09-08:00" xml:lang="en-US">
<Request deploymentMode="test">
<OrderRequest>
<OrderRequestHeader orderID="DO1234" orderDate="2000-10-12T18:41:29-08:00"
type="new">
<Total>
<Money currency="USD">187.60</Money>
</Total>
<ShipTo>
<Address>
<Name xml:lang="en">Acme</Name>
<PostalAddress name="default">
<DeliverTo>Joe Smith</DeliverTo>
<DeliverTo>Mailstop M-543</DeliverTo>
<Street>123 Anystreet</Street>
<City>Sunnyvale</City>
<State>CA</State>
<PostalCode>90489</PostalCode>
<Country isoCountryCode="US">United States
</Country>
</PostalAddress>
</Address>
</ShipTo>
</OrderRequestHeader>
</OrderRequest>
</Request>
</cXML>';
It is seems to be working.......................
MY QUESTION IS...
Is there any risk Involved to Using the
EXECUTE IMMEDIATE ('alter session set events ''31156 trace name context forever, level 2'''); statment.
Any Help will be greatly appreciated.
Thanks.Most "set events" are workarounds or needed for Oracle support to do some debugging. Using them is at your own risk, and probably not supported by Oracle if you get into trouble.
-
Execute sql command "ALTER SESSION SET..."
How can i execute command "ALTER SESSION SET NLS_DATE_FORMAT ='MM/DD/YYYY'" with JDBC
api.
And by default?
Bye
SteI'm not sure that you want to do this in Java. I would imagine that the NLS_DATE_FORMAT would be set by the Oracle DBA, and shouldn't be changed by a Java app via JDBC.
Besides, when you query the database for a date it's returned as a java.sql.Date, regardless of the settings in the database. Once you have that, you can format it according to your wishes by using java.text.DateFormat and java.text.SimpleDateFormat.
I thought the point was that the JDBC driver took care of ensuring that you got java.sql.Date objects back from queries, regardless of the NSL_DATE_FORMAT setting in the database. -
Execute immediate 'alter session set current_schema = ' failed in PL/SQL
Hi
I am trying to run
EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA = TEST ' ;
in a pl/sql block but it is failing.Can anyone update me on this.
CREATE OR REPLACE PROCEDURE test3
IS
A_COUNT NUMBER(15);
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA = TEST ' ;
SELECT COUNT(*) INTO A_COUNT FROM (
select id from solutions );
END;
/The user who owns the procedure needs to be granted direct select rights on table test.solutions (not via a role). Still will not help. Look what OP is trying to do. In a stored procedure owned by some user (other than TEST) OP is trying to reference user TEST owned table solution without prefixing it with owner. Something like:
SQL> create table u1.test_tbl(x number);
Table created.
SQL> select * from test_tbl;
select * from test_tbl
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> alter session set current_schema = U1;
Session altered.
SQL> select * from test_tbl;
no rows selected
SQL> However, OP tries to do it in a SP using dynamic SQL to change current schema to test. Such change will occur when SP will be executed, not when is it compiled. At compile time we are still under SP owner's schema and therefore select from solutions implies table solutions owned by SP owner, not by TEST. The only way to make SP compile and work OK is to select from solutions also dynamically:
SQL> select sys_context('userenv','current_schema') from dual
2 /
SYS_CONTEXT('USERENV','CURRENT_SCHEMA')
SCOTT
SQL> CREATE OR REPLACE PROCEDURE test3
2 IS
3 A_COUNT NUMBER(15);
4 BEGIN
5 EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA = U1' ;
6 SELECT COUNT(*) INTO A_COUNT FROM (
7 select x from test_tbl );
8 END;
9 /
Warning: Procedure created with compilation errors.
SQL> sho err
Errors for PROCEDURE TEST3:
LINE/COL ERROR
6/1 PL/SQL: SQL Statement ignored
7/15 PL/SQL: ORA-00942: table or view does not exist
SQL> set serveroutput on
SQL> CREATE OR REPLACE PROCEDURE test3
2 IS
3 A_COUNT NUMBER(15);
4 c sys_refcursor;
5 BEGIN
6 EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA = U1' ;
7 OPEN C FOR 'SELECT COUNT(*) FROM (select x from test_tbl )';
8 FETCH c INTO A_COUNT;
9 dbms_output.put_line(a_count);
10 CLOSE c;
11 END;
12 /
Procedure created.
SQL> insert into u1.test_tbl select rownum from emp;
14 rows created.
SQL> exec test3
14
PL/SQL procedure successfully completed.
SQL> Obviously, as you noted SP owner must have directly granted select on test3.solutions.
SY. -
Alter system or alter session set events
Can we use interchangeably alter session or alter system set events?
Thank you.DBA-ES wrote:
For example this statement
alter session set events '8103 trace name errorstack level 3';
Can it be done at the system level? How to check it?Sure it can be,
SQL*Plus: Release 11.2.0.1.0 Production on Fri Oct 21 15:32:54 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter session set events '8103 trace name errorstack level 3';
Session altered.
SQL> alter system set events '8103 trace name errorstack level 3';
System altered.
SQL>And to check, for the alter system , the statement would be logged in the alert log,
Fri Oct 21 15:31:46 2011
OS Pid: 4656 executed alter system set events '8103 trace name errorstack level 3'
D:\app\aristadba\diag\rdbms\orcl112\orcl112\trace>sqlplus / as sysdbaHTH
Aman.... -
Ability to perform ALTER SESSION SET SQL TRACE but not all alter clauses
I see that in order to run the ALTER SESSION SET SQL TRACE command, the user should be explicitly granted alter session privilege as the CREATE SESSION privilege alone is not enough. Is there a way to grant the ability to perform ALTER SESSION SET SQL TRACE but not the other clauses such as GUARD, PARALLEL & RESUMABLE?.
Thanks
SathyaIf you are using Oracle 10g and above, you can use DBMS_SESSION.session_trace_enable procedure,
it doesn't require alter session system privilege.
Simple example:
SQL> connect test/test@//192.168.1.2:1521/xe
Connected.
SQL> alter session set tracefile_identifier='my_id';
Session altered.
SQL> alter session set sql_trace = true
2 ;
alter session set sql_trace = true
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> execute dbms_session.session_trace_enable;
PL/SQL procedure successfully completed.
SQL> select * from user_sys_privs;
USERNAME PRIVILEGE ADM
TEST CREATE PROCEDURE NO
TEST CREATE TABLE NO
TEST CREATE SEQUENCE NO
TEST CREATE TRIGGER NO
TEST SELECT ANY DICTIONARY NO
TEST CREATE SYNONYM NO
TEST UNLIMITED TABLESPACE NO
7 rows selected.
SQL> execute dbms_session.session_trace_disable;
PL/SQL procedure successfully completed.
SQL> disconnect
Disconnected from Oracle Database 10g Release 10.2.0.1.0 - Productionand here is result from tkprof:
TKPROF: Release 10.2.0.1.0 - Production on So Paź 23 00:53:07 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Trace file: xe_ora_176_my_id.trc
( ---- cut ---- )
select *
from
user_sys_privs
call count cpu elapsed disk query current rows
Parse 1 0.08 0.08 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.01 0.01 0 15 0 7
total 4 0.09 0.09 0 15 0 7
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 61
Rows Row Source Operation
7 HASH GROUP BY (cr=15 pr=0 pw=0 time=11494 us)
7 CONCATENATION (cr=15 pr=0 pw=0 time=4913 us)
0 MERGE JOIN CARTESIAN (cr=4 pr=0 pw=0 time=1169 us)
0 NESTED LOOPS (cr=4 pr=0 pw=0 time=793 us)
0 TABLE ACCESS FULL SYSAUTH$ (cr=4 pr=0 pw=0 time=592 us)
0 INDEX RANGE SCAN I_SYSTEM_PRIVILEGE_MAP (cr=0 pr=0 pw=0 time=0 us)(object id 312)
0 BUFFER SORT (cr=0 pr=0 pw=0 time=0 us)
0 TABLE ACCESS FULL USER$ (cr=0 pr=0 pw=0 time=0 us)
7 NESTED LOOPS (cr=11 pr=0 pw=0 time=3429 us)
9 HASH JOIN (cr=9 pr=0 pw=0 time=2705 us)
9 TABLE ACCESS FULL SYSAUTH$ (cr=4 pr=0 pw=0 time=512 us)
63 TABLE ACCESS FULL USER$ (cr=5 pr=0 pw=0 time=914 us)
7 INDEX RANGE SCAN I_SYSTEM_PRIVILEGE_MAP (cr=2 pr=0 pw=0 time=510 us)(object id 312)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
SQL*Net message from client 2 20.64 20.65
BEGIN dbms_session.session_trace_disable; END;
call count cpu elapsed disk query current rows
Parse 1 0.01 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 1
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.01 0.00 0 0 0 1
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 61 -
Error running SQL and EXEC commands in parallel
Dear Gurus,
We are applying 3480000 and in process as soon as workers start it come out of adpatch session and give su the following error:
************* Start of AD Worker session *************
AD Worker version: 11.5.0
AD Worker started at: Sun Sep 02 2007 23:11:01
APPL_TOP is set to /sgmtemp/prodappl
Worker process 4 started.
Checking if all jobs have their actual and symbolic arguments in sync....
Done.
Writing jobs to run to restart file.
Reading jobs from FND_INSTALL_PROCESSES table ...
Done reading jobs from FND_INSTALL_PROCESSES table ...
Telling workers to read 'todo' restart file.
Done.
Starting phase 0 (A0): first
There are now 98197 jobs remaining (current phase=A0):
0 running, 123 ready to run and 98074 waiting.
Assigned: file adsysapp2.sql on worker 1 for product admin username APPLSYS.
Assigned: file cssruwq1.sql on worker 2 for product cs username CS.
Connecting to CSD......Unable to connect.
AutoPatch error:
The following ORACLE error:
ORA-01017: invalid username/password; logon denied
occurred while executing the SQL statement:
CONNECT CSD/*****
AutoPatch error:
Error while evaluating "Check Object"
Telling workers to quit...
3 workers have quit. Waiting for 1 more.
All workers have quit.
Error running SQL and EXEC commands in parallel
You should check the file
/sgmtemp/prodappl/admin/msbep004/log/3480000_sbm3.log
for errors.
applmgr@21:/sgmtemp/Oglupgr/3480000>
What could be the issue, i tried to connect CSD/CSD in sql and it connected.
Thanks in Advance
Regards
Kiran RanaHi Gurus,
Even i tried to recreate the FND_GLOBAL by performing the following, but still no luck:
output for scripts hearder value in FND_TOP:
applmgr@21:/sgmtemp/prodcomn/temp> cd $FND_TOP/patch/115/sql
applmgr@21:/sgmtemp/prodappl/fnd/11.5.0/patch/115/sql> grep Header AFSCGBL*
AFSCGBLB.pls:/* $Header: AFSCGBLB.pls 115.78 2005/03/21 11:40:02 vbalakri ship $ */
AFSCGBLS.pls:/* $Header: AFSCGBLS.pls 115.33 2004/06/30 05:00:18 rsheh ship $ */
Output for script header value in Database:
SQL> select text from dba_source where name='FND_GLOBAL' and line <5;
TEXT
package FND_GLOBAL as
/* $Header: AFSCGBLS.pls 115.33 2004/06/30 05:00:18 rsheh ship $ */
package body FND_GLOBAL as
/* $Header: AFSCGBLB.pls 115.78 2005/03/21 11:40:02 vbalakri ship $ */
8 rows selected.
We tried to re-apply 4 hours back when one of the support personnal ask use to run those
scripts. one of them went with out any errors but second one went with errors
as follows:
First Script @AFSCGBLS.pls
applmgr@21:/sgmtemp/prodappl/fnd/11.5.0/patch/115/sql> sapps @AFSCGBLS.pls
SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 3 03:24:10 2007
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
DOC> | Copyright (c) 1993 Oracle Corporation Redwood Shores, California, USA|
DOC> | All rights reserved. |
DOC> +=======================================================================+
DOC> | FILENAME
DOC> | AFSCGBLS.pls
DOC> |
DOC> | DESCRIPTION
DOC> | PL/SQL specification for package: FND_GLOBAL
DOC> |
DOC> | NOTES
DOC> | This module is called by AutoInstall (afplss.drv) on install and
DOC> | upgrade. The WHENEVER SQLERROR and EXIT (at bottom) are required.
DOC> |
DOC> | HISTORY
DOC> | June, 1999 - Added function AUDIT_ACTIVE, bug 879630. Jan Smith.
DOC> | 11/19/01 MSkees - Added DBDrv line and 'SET VERIFY OFF' for ARU auto
DOC> | generation bug 2047263 build
DOC> |
DOC> *=======================================================================*/
Package created.
Commit complete.
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
Second Script AFSCGBLB.pls:
applmgr@21:/sgmtemp/prodappl/fnd/11.5.0/patch/115/sql> sapps @AFSCGBLB.pls <
SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 3 03:27:15 2007
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
Warning: Package Body created with compilation errors.
Commit complete.
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.7.0 -
Production
applmgr@21:/sgmtemp/prodappl/fnd/11.5.0/patch/115/sql>
The second script (AFSCGBLB.pls) run's out with errors and changes status of almost 15000 objects as INVALID in database.
Regards
Kiran Rana -
Hi,
Can anyone see why I am getting this error message for my SQL query?
WITH SKU_DATA AS (
SELECT /*+ MATERIALIZE */ DISTINCT FROM_LOC_ID,
SKU_ID,
DESCRIPTION,
UPDATE_QTY,
ORDER_ID,
CONSIGNMENT,
WEIGHT,
PALLET_ID,
CASE
WHEN Upd_Qty_Ratio < 1
THEN TO_CHAR(UPDATE_QTY) || 'U'
WHEN TRUNC(Upd_Qty_Ratio) = Upd_Qty_Ratio
THEN TO_CHAR(Upd_Qty_Ratio) || 'C'
ELSE TO_CHAR(TRUNC(UPDATE_QTY)) || 'C' || ' ' || TO_CHAR(ROUND(MOD(Upd_Qty_Ratio, 1) * USER_DEF_NUM_3, 6)) || 'U'
END CU_Sum
FROM (
SELECT DISTINCT
FROM_LOC_ID,
S.SKU_ID,
S.DESCRIPTION,
ITL.UPDATE_QTY,
S.USER_DEF_NUM_3,
OH.ORDER_ID,
ITL.CONSIGNMENT,
ITL.PALLET_ID,
NVL(ITL.UPDATE_QTY,0)*NVL(S.EACH_WEIGHT,0) Weight,
ITL.UPDATE_QTY/(CASE S.USER_DEF_NUM_3 WHEN 0 THEN 1 ELSE S.USER_DEF_NUM_3 END) Upd_Qty_Ratio
FROM INVENTORY_TRANSACTION ITL, SKU S, LOCATION L, ORDER_HEADER OH
WHERE ITL.SKU_ID = S.SKU_ID
AND ITL.CODE = 'Pick'
AND ITL.CONSIGNMENT = $P{Consignment}
AND OH.ORDER_DATE = TO_CHAR($P{Date}, 'DD-Mon-YYYY')
AND OH.ORDER_ID = ITL.REFERENCE_ID
AND ITL.TO_LOC_ID = 'CONTAINER'))
SELECT DISTINCT ORDER_ID, CONSIGNMENT, WEIGHT, PALLET_ID, CU_Sum,
(SELECT NVL(TO_CHAR(SUM(CASE WHEN NULLIF(SUBSTR(Cu_Sum, -1), 'U') IS NULL THEN NULL ELSE REPLACE(Cu_Sum,'C',NULL) END)),'0') ||'C' || ' ' || NVL(TO_CHAR(SUM(CASE WHEN NULLIF(SUBSTR(Cu_Sum, -1), 'C') IS NULL THEN NULL ELSE REPLACE(Cu_Sum,'U',NULL) END)),'0') ||'U' FROM SKU_DATA) AS Total_Cu_Sum
FROM SKU_DATAThanks in advance.
SM.Hi Sean,
It is saying error executing SQL statement, but with no "ORA error" so maybe its a Jasper Reports error i'm not too sure.
And this is a different version of the one we done together, that one is running fine just having problems putting the jasper file on to the server. I'm just using the main bits from the original SQL.
SM -
Hi ,
I am working on SAP BW 3.5.
while downloading the records through infospoke and giving them to the Application server side, I am getting an error "Error in SQL Statement: DBIF_RSQL_INVALID_RSQL".
Daily the Infospoke runs on delta mode. But for downloading of few records i have deactivated the delta and changed it in to Full mode. After downloading the data I again Activated the delta.but while Executing on Background mode I am getting an error mentioned above.
can anyone please suggest a solution for resolving this error?
Thanks in advance.
Santosh.Hi:
Did you do some recent change in the objects?. I face sometimes this error and it is due to misalignment among the objects in a data flow (cubes, DSOs, transformations, DTPs, etc.).
What you can do is activate everything again.
Best regards. -
Execution of SQL statement 'alter tablespace PSAPSR3
Dear mastah,
I trying extend tablesapce at oracle, but not succesfully, and have problem,
maybe can help this issue..
error problem add tablespace:
BR0280I BRSPACE time stamp: 2014-01-06 10.27.31
BR0370I Directory /oracle/SID/sapreorg/semxnacf created
BR0280I BRSPACE time stamp: 2014-01-06 10.27.32
BR0319I Control file copy created: /oracle/SID/sapreorg/semxnacf/cntrlSID.old 99106816
BR0280I BRSPACE time stamp: 2014-01-06 10.27.32
BR1088I Extending tablespace PSAPSR3...
BR0280I BRSPACE time stamp: 2014-01-06 10.27.51
BR0301E SQL error -59 at location BrSqlExecute-1, SQL statement:
'/* BRSPACE */ alter tablespace PSAPSR3 add datafile '/oracle/SID/sapdata16/sr3_218/sr3.data218' size 4000M autoextend off'
ORA-00059: maximum number of DB_FILES exceeded
BR1017E Execution of SQL statement 'alter tablespace PSAPSR3 add datafile '/oracle/SID/sapdata16/sr3_218/sr3.data218' size 4000M autoextend off' failed
BR0669I Cannot continue due to previous warnings or errors - you can go back to repeat the last action
BR0280I BRSPACE time stamp: 2014-01-06 10.27.51
BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
regards,
aminBR1088I Extending tablespace PSAPSR3...
BR0280I BRSPACE time stamp: 2014-01-06 10.27.51
BR0301E SQL error -59 at location BrSqlExecute-1, SQL statement:
'/* BRSPACE */ alter tablespace PSAPSR3 add datafile '/oracle/SID/sapdata16/sr3_218/sr3.data218' size 4000M autoextend off'
ORA-00059: maximum number of DB_FILES exceeded
$ oerr ora 59
00059, 00000, "maximum number of DB_FILES exceeded"
// *Cause: The value of the DB_FILES initialization parameter was exceeded.
// *Action: Increase the value of the DB_FILES parameter and warm start.
$ -
Adpatch: Error running SQL and EXEC commands in parallel
Hi
I am applying R12 RUP2 to an instance at the moment. I had an OS crash (I'm running R12 on Linux on VMWARE) and on reboot attempted to restart the patch.
I now get an error as follows:
Error running SQL and EXEC commands in parallel
I must admit, I'm not a DBA, so if anyone has any ideas or has seen this before then it would be most appreciated!
Thanks
ChrisHi Adith
The patch is 5484000, RUP 2 for E-Business Suite R12
Here's the adpatch output:
Start date: Wed Sep 12 2007 15:15:14
0 "left over" javaupdates.txt files uploaded to DB: Wed Sep 12 2007 15:15:14
0 patches uploaded from the ADPSV format patch history files: Wed Sep 12 2007 15:15:14
Uploading information about files copied during the previous runs ...
0 "left over" filescopied_<session_id>.txt files uploaded to DB: Wed Sep 12 2007 15:15:14
****************** E N D O F U P L O A D ******************
End date: Wed Sep 12 2007 15:15:14
Already asked for the name of the patch directory.
(The answer was: /oracle/patches/5484000)
Already asked for the name of the patch driver file.
(The answer was: /oracle/patches/5484000/u5484000.drv)
Reading release list save file...
Done reading release list save file
Log and Info File sync point:
Wed Sep 12 2007 15:15:15
Turning off actions that reference unrecognized products.
Log and Info File sync point:
Wed Sep 12 2007 15:15:15
End of unrecognized products checking.
(The number of parallel workers is: " 2 ")
AutoPatch will run in parallel mode.
Did not need to apply new applterr.txt.
Skipping...
Determine directories to create for Specified driver
since no such action is present for this driver file
Skipping...
Determine Oracle Reports libraries to generate for Specified driver
since no such action is present for this driver file
Skipping...
Determine if need to generate message files for Specified driver
since no such action is present for this driver file
Skipping...
Create Directories for Specified driver
since no such action is present for this driver file
Number of invalid objects: 31057
Running SQL scripts and EXEC commands...
Determining which SQL and EXEC commands to run...
Validating PL/SQL direct execute exceptions file ...
Done validating PL/SQL direct execute exceptions file.
SERVICE_NAME/INSTANCE_NAME : [VIS]
connect_string : [(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ebusr12.chriseebee.me.uk)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS)))]
Done determining which SQL and EXEC commands to run.
Running SQL and EXEC commands in parallel...
Creating the AD_UTIL_PARAMS table...
Table AD_UTIL_PARAMS already exists, so dropping the table and recreating it.
Creating FND_INSTALL_PROCESSES table...
Already created fnd_install_processes table
Already created FND_INSTALL_PROCESSES_U1 index.
Already created AD_DEFERRED_JOBS table
Already created AD_DEFERRED_JOBS_U1 index.
Writing dependencies of jobs to run to appldep.txt file...
There are now 7569 jobs remaining (current phase=A0):
0 running, 5 ready to run and 7564 waiting.
Reading completed jobs from restart file (if any).
There are now 3474 jobs remaining (current phase=A18):
0 running, 1 ready to run and 3473 waiting.
Determining which java executables are supported by adJavaWorker...
Starting worker processes.
Worker process 1 started.
Worker process 2 started.
Checking if all jobs have their actual and symbolic arguments in sync....
Done.
Writing jobs to run to restart file.
Reading jobs from FND_INSTALL_PROCESSES table ...
Running: file adobjcmp.sql on worker 1 for product ad username APPLSYS.
AutoPatch error:
The worker should not have status 'Running' or 'Restarted' at this point.
Telling workers to quit...
************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Wed Sep 12 2007 15:15:34
APPL_TOP is set to /oracle/VIS/apps/apps_st/appl
************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Wed Sep 12 2007 15:15:34
APPL_TOP is set to /oracle/VIS/apps/apps_st/appl
All workers have quit.
AutoPatch error:
Error running SQL and EXEC commands in parallel
You should check the file
/oracle/VIS/apps/apps_st/appl/admin/VIS/log/adpatch.log
for errors. -
Run SQL statements from a textbox
Hi
I'm trying to execute multiple insert/update or Delete statements from a textarea of a page. I'm basically trying to replicate the same functionalility as SQL Workshop for users to access and run sql statements for it.
I know in SQL workshop you can run multiple insert/update or delete statements using the following syntax:
begin
insert into table_1 (col1,col2)values('WER','QWE');
Insert into table_1 (col1,col2)values('ABC','DEF');
End;
I have created a textarea called :P1_SQL with a submit button which when pressed it runs the execute immediate :P1_SQL. It works if its a single insert command. I've tried the begin...end option which bring up the following error message:
ORA-06550: line 1, column 6: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "begin was inserted before "" to
Any ideas how I could get this to work?
Message was edited by:
Funkymonkey2The process code that I have is as follows:
Declare
l_sql varchar2 (4000);
begin
l_sql := :P3_SQL;
execute immediate l_sql;
End;
in the textarea I had entered the following
begin
insert into TBL_TEST_SQL(name,useR_id)values('abc','erf' );
insert into TBL_TEST_SQL(name,useR_id)values('dec','erf');
end;
I was actually hoping to concatanate the 'begin...' part and the 'end;/' part on to the beginning and end of the sql statements.
Any ideas?? -
Hi Everyone,
I would like to create an error package say PKG_ERROR that has a procedure say LOG_ERROR. The LOG_ERROR procedure will basically logs the following in a table
ERROR_ID
-> SEQ_ERROR_ID.NEXTVAL
CREATED_DATE
-> SYSDATE
HOST_NAME
-> SELECT sys_context('USERENV', 'HOST') FROM dual;
IP_ADDRESS
-> SELECT sys_context('USERENV', 'IP_ADDRESS') FROM dual;
OS_USER
-> SELECT sys_context('USERENV', 'OS_USER') FROM dual;
SESSION_USER
-> SELECT sys_context('USERENV', 'SESSION_USER') FROM dual;
SCHEMA_NAME
-> SELECT sys_context('USERENV', 'CURRENT_SCHEMA') FROM dual;
ERROR_CODE
-> SQLCODE
ERROR_MESSAGE
-> SQLERRM
ERROR_STACK
-> DBMS_UTILITY.FORMAT_ERROR_STACK
CALL_STACK
-> DBMS_UTILITY.FORMAT_CALL_STACK
SQL_STATEMENT
-> ????
My problem now is how to get the SQL_STATEMENT that caused the error.
I'll be using the PKG_ERROR.LOG_ERROR procedure as follows:
PROCEDURE SP_TEST
IS
v_NUMBER NUMBER;
BEGIN
SELECT 1 / 0
INTO v_NUMBER
FROM DUAL;
EXCEPTION
WHEN OTHERS THEN
PKG_ERROR.LOG_ERROR(param_1, param_N);
END PROCEDURE SP_TEST;
I tried numerous codes and place them on the PKG_ERROR.LOG_ERROR procedure but to no avail:
#1
-- did not return the ERROR'd SQL Statement
SELECT q.sql_text
INTO captured_sql
FROM gv$sql q, gv$sql_cursor c, gv$session s
WHERE s.audsid = USERENV('sessionid')
AND s.prev_sql_addr = q.address
AND q.address = c.parent_handle;
#2
-- Only works in Database Error Trigger (I would like a solution via Package)
DECLARE
l_text ora_name_list_t;
l_n number;
BEGIN
dbms_output.put_line( '--------------------' );
dbms_output.put_line('statment causing error: ' );
l_n := ora_sql_txt( l_text );
FOR i in 1 .. nvl(l_text.count,0)
LOOP
dbms_output.put_line(l_text(i) );
END LOOP;
dbms_output.put_line( 'error text: ' );
FOR i IN 1 .. ora_server_error_depth
LOOP
dbms_output.put_line(ora_server_error_msg(i) );
END LOOP;
dbms_output.put_line( '--------------------' );
END;
#3
-- as per PSOUG it is returns the first 4K bytes of the current SQL that triggered the fine-grained auditing event. (I'm not using FGA)
SELECT sys_context('USERENV', 'CURRENT_SQL') FROM dual;
Is it possible??
Thanks,
Henry Wu<My problem now is how to get the SQL_STATEMENT that caused the error.>
We use a location variable that indicates where in a program the error occurred, something like
variable v_location_c VARCHAR2(10);
v_location_c := '1000000000';
UPDATE ...
EXCEPTION
WHEN OTHERS THEN
log_error('program_name',user,v_location_c, ...) -
Error in SQL Statement: SAPSQL_INVALID_FIELDNAME F~/BIC/ZREVISQTY
Dear Guys,
Regards..In the "Listcube" transaction and "Manage Contents" of the cube,whenver i execute the transaction to get the 'Output List' ,i get the following error : " Error in SQL Statement : SAPSQL_INVALID_FIELDNAME"..with the following obj : ZREVISQTY............But when i remove the "ZREVISQTY" from the selection screen in both "LISTCUBE" and "MANAGE" of the cube,the output works fine......It would be great if somone can throw light on this...........
Manythanks
ArunDear Guys,
Regards..In the "Listcube" transaction and "Manage Contents" of the cube,whenver i execute the transaction to get the 'Output List' ,i get the following error : " Error in SQL Statement : SAPSQL_INVALID_FIELDNAME"..with the following obj : ZREVISQTY............But when i remove the "ZREVISQTY" from the selection screen in both "LISTCUBE" and "MANAGE" of the cube,the output works fine......It would be great if somone can throw light on this...........
Manythanks
Arun
Maybe you are looking for
-
Won't Open. At all.
I've never used AppleScript before, and I tried to open it for the first time, and it won't open. The first time I tried to open it, the animation happened, but it never opened. I rebooted the computer and the second time I opened it it jumped up and
-
How to access(connect) BI Data in webdynpro for java applications
Hi , is there any way to access and display the BI data in portal using webdynpro for java applications like we did in Visual composer. if not how to integrate the BI data in webdynpro applications ? Regards, Govindu
-
The PDF files I synced to my iPad isn't showing in iBooks. Why?
I added the files to the library, then clicked the sync iPad menu option. It acted like it worked but the PDFs aren't showing in IBooks. Now the sync iPad isn't available anymore so I can't try it again. Please help!
-
How to use MyFaces component with Java Creator 2
Please advise for me the way to use Myfaces component with Java Creator 2. Thanks
-
OBIEE Ad-Hoc Reporting .
Hi, Can any body tell me more details about adhoc reporting in Obiee.How do we set put users authentication.and how are reports saved.and anything else more,,, Would really appreciate it