RMAN-04002: ocipi failed, ORA  1

Hi,
I am running SAP Ecc6 Ehp 4 on Oracle 10g  & AIX 6.1.
I am facing one issue while taking backup of the Development & Quality servers using DB13 (brbackup). The issue is arrising at the time of RMAN catlog call.
Below is the error.
BR0530I Cataloging backups of all database files...
BR0278E Command output of 'SHELL=/bin/sh /oracle/SDS/102_64/bin/rman nocatalog':
Recovery Manager: Release 10.2.0.2.0 - Production on Wed Jul 28 20:42:35 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
RMAN>
RMAN> connect target *
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04002: ocipi failed, ORA  1
RMAN> *end-of-file*
RMAN>
host command complete
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27> 28> 29> 30> 31> 32> 33> 34> 35> 36> 37>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of catalog command at 07/28/2010 20:42:36
RMAN-06171: not connected to target database
RMAN>
Recovery Manager complete.
BR0280I BRBACKUP time stamp: 2010-07-28 20.42.36
BR0279E Return code from 'SHELL=/bin/sh /oracle/SDS/102_64/bin/rman nocatalog': 1
BR0536E RMAN call for database instance SDS failed
BR0280I BRBACKUP time stamp: 2010-07-28 20.42.36
BR0532E Cataloging backups of all database files failed
I also had refer the Metalink 780670.1 but it didn't work. Please help me out to solve this issue.
Thanks & Regards,
Sachin

Dear Sachin,
RMAN-03002: failure of catalog command at 07/28/2010 20:42:36
RMAN-06171: not connected to target database
It seems you are not being able to connect to database using RMAN.
First eliminate this error and then see the result...
What happens when you run the below commands as ora<sid>
# RMAN
RMAN> connect target /
RMAN> connect catalog /@<DBSID>
Post the output of the above commands.
Regards.
Rajesh Narkhede

Similar Messages

  • Database Error: DBD::Oracle::db do failed: ORA-04030: out of process memory

    Hi
    I have a stored procedure that uses the XMLQuery function (SELECT XMLQuery( '......' RETURNING CONTENT) FROM dual; ) to extract data from 3 different tables and store the xml file in XML DB. This store procedure was running fine for a long time until 2 weeks ago where I started seeing the following error:
    Database Error: DBD::Oracle::db do failed: ORA-04030: out of process memory when trying to allocate 92 bytes (koh dur heap d,qmxtkWriteXobToOpn:heap)
    Currently I have 16,000 records. I am not sure what is going on, the size of the previous successful output xml file is about 2M. I also noticed when the stored procedure runs with 3G of system memory available, it basically used up all the memory and cpu time. The store proc consistently dies after 3.5 hour and spits out the ORA-04030 out of process memory error.
    Does anyone have any suggestion what to look for or what parameters I need to set? Thanks

    Unless your database is strictly a DSS-type of database, your AWR report exposes loads of issues with it. And I think none of the time during the AWR window was spent on database. Look at the DB time (with all those multi cores) compared with the elapsed time of the AWR.
    As you are on 11g, why not make use of MEMORY_TARGET (a single parameter to manage both SGA and PGA)? If you are already on it, ignore this as I can't see it anywhere. If not, get rid of SGA_TARGET and PGA_AGGREGATE_TARGET and replace it with a single MEMORY_TARGET parameter. However you may have a minimum threshold set for different SGA pools so that they won't shrink beyond that point.
    Having said that, setting MEMORY_TARGET is not a guarantee to avoid ORA-4030. Just a single bad PL/SQL code could go and exploit the untunable part of your process memory and even go and blow up the physical memory. If you are using FORALL and BULK load, see if you can cut it down into few chunks rather than running as a single process.
    What does your V$PGASTAT say?

  • ORA-29273: HTTP request failed ORA-12535: TNS:operation timed out

    SQL*Plus: Release 11.2.0.3.0
    Solaris 10 SPARC
    Hi,
    I get the following error when trying to make an HTTP request. Below is the snippet of code I run. I get the error after exactly 60 seconds(default timeout?). I searched through the forums and found many similar errors but nothing that helped me resolve this issue. The problem does not exist in the rest of our environments, only our test environment.
    Help is greatly appreciated. Thanks.
    DECLARE
       p_mid_tier    VARCHAR2 (500);
       responsestr   VARCHAR2 (500);
    BEGIN
       SELECT *****
         INTO p_mid_tier
         FROM *****
        WHERE profile_type = '*****';
       UTL_HTTP.set_wallet ('file://$ORACLE_HOME/network/admin/wallets');
       UTL_HTTP.set_transfer_timeout (6000);
       UTL_HTTP.set_response_error_check (TRUE);
       responsestr :=
          UTL_HTTP.request (
             UTL_URL.ESCAPE (p_mid_tier || '*****'));
       DBMS_OUTPUT.put_line (responsestr);
    END;
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1722
    ORA-12535: TNS:operation timed out
    ORA-06512: at line 15

    1001371 wrote:
    SQL*Plus: Release 11.2.0.3.0
    Solaris 10 SPARC
    Hi,
    I get the following error when trying to make an HTTP request. Below is the snippet of code I run. I get the error after exactly 60 seconds(default timeout?). I searched through the forums and found many similar errors but nothing that helped me resolve this issue. The problem does not exist in the rest of our environments, only our test environment.
    Help is greatly appreciated. Thanks.
    DECLARE 
       p_mid_tier    VARCHAR2 (500); 
       responsestr   VARCHAR2 (500); 
    BEGIN 
       SELECT ***** 
         INTO p_mid_tier 
         FROM ***** 
        WHERE profile_type = '*****'; 
       UTL_HTTP.set_wallet ('file://$ORACLE_HOME/network/admin/wallets'); 
       UTL_HTTP.set_transfer_timeout (6000); 
       UTL_HTTP.set_response_error_check (TRUE); 
       responsestr := 
          UTL_HTTP.request ( 
             UTL_URL.ESCAPE (p_mid_tier || '*****')); 
       DBMS_OUTPUT.put_line (responsestr); 
    END; 
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1722
    ORA-12535: TNS:operation timed out
    ORA-06512: at line 15
    the most frequent cause for TIMEOUT is a FireWall on or between client & server.
    when was last time this worked without error?
    what changed since then?

  • Connection failing : ORA-12154

    Hello everybody,
    I have a connexion via Oracle SQL Developper that works fine to an Oracle database.
    I should like to write an interface via an office tool, probably Ms-Access, to that database.
    I could create an ODBC connexion in the user DSN in the administration tools of Windows (XP Pro), and the test button gives me a message that says the connection is successful.
    Now, when I try to create a linked table to Oracle in the Access base, I am invited to type the password (saving the password will come afterwards in the order of importance), and then an error message tells me :
    ODBC -- l'appel a échoué
    [Oracle][ODBC][Ora]ORA-12154: TNS : l'identificateur de connexion indiqué n'a pas pu être résolu
    (#12154)[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed IM006 0 [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed(#0)
    The 2 first lines could be translated like that :
    ODBC -- the call failed
    ORA-12154: TNS : the connection identificator that was given could not be resolved.
    So, I searched for the number of the error, and as an answer I got this :
    http://www.oracle.com/technetwork/topics/dotnet/odt-faq-085407.html#ORA-12154:_TNS:could_not_resolve_the
    (attempt to use the link functionnality in the forum failed)
    Second attempt :
    [http://www.oracle.com/technetwork/topics/dotnet/odt-faq-085407.html#ORA-12154:_TNS:could_not_resolve_the|http://www.oracle.com/technetwork/topics/dotnet/odt-faq-085407.html#ORA-12154:_TNS:could_not_resolve_the]
    I had made two attempts to install the .Net driver (including Oracle Provider for OLE DB 11.2.0.1.0), as during the first one I saw "installation suspended", and I had time to click on abort before understanding this was normal.
    So, I have copied TNSNAMES.ORA to the directory
    C:\app\(my name)\product\11.2.0\client_2\Network\Admin
    I deleted folder C:\app\(my name)\product\11.2.0\client_1
    as this seems to be duplicated.
    I am afraid I still get the same results, so if somebody has a clear idea about this, it will be welcomed.
    Edited by: user13498894 on 17 déc. 2010 17:40

    Bingo ! This was the correct thing to verify.
    This morning I begun by creating a linked table to the Oracle base, and it ran without any difficulty. I was even invited to check a box to save the password.
    So, this is what I guess : when SQL Developper is not used during a certain time, the connection is reinitialized, you have to close the product and reopen it. I wonder whether the account of authorized connections, at a time, would not fail to be reinitialized when doing that, thus preventing to open further connections. SQL developper can open its connection again, but other products then fail to open theirs.
    It seams to be a path to explore.
    I wonder whether I am supposed to close the topic : I could create my linked tables, nevertheless probably it would be interesting to have an in-depth view of how to reinitialize a connection properly when a time-out prevents it to run any more.
    Anyway this seems necessary to answer user13502634's question.
    Any idea about what documentation to read about it ?
    Edited by: Neptune on 21 déc. 2010 15:14

  • ORA-20011: Approximate NDV failed: ORA-31000: Resource Error in Oracle 11g

    Hi Friends,
    I am using Oracle 11.2.0.1 on linux (x64) and i am getting the following messages in Alert Log / Trace Log.
    Please let me know the fix.
    Alert Log:
    GATHER_STATS_JOB encountered errors. Check the trace file.
    Errors in file /u01/app/oracle/diag/rdbms/oraht01/oraht01/trace/oraht01_j001_30852.trc:
    ORA-20011: Approximate NDV failed: ORA-31000: Resource '' is not an XDB schema document
    ORA-06512: at "XDB.XDB$ACL_PKG_INT", line 18
    Trace File entries:
    ----- Guard Frame Metadata Dump -----
    ----- Java Stack -----
    ORA-20011: Approximate NDV failed: ORA-31000: Resource '' is not an XDB schema document
    ORA-06512: at "XDB.XDB$ACL_PKG_INT", line 18
    *** 2013-01-21 22:00:36.397
    GATHER_STATS_JOB: GATHER_TABLE_STATS('"XDB"','"XDB$ACL"','""', ...)
    ORA-20011: Approximate NDV failed: ORA-31000: Resource '' is not an XDB schema document
    ORA-06512: at "XDB.XDB$ACL_PKG_INT", line 18
    Regards,
    DB

    Hi Friends,
    Thanks for the info but the referred Thread and the Metalink Notes : 1290722.1 or 1305127.1 doesn't help me.
    Trace File :
    *** 2013-01-21 22:00:29.760
    *** SESSION ID:(28.36753) 2013-01-21 22:00:29.760
    *** CLIENT ID:() 2013-01-21 22:00:29.760
    *** SERVICE NAME:(SYS$USERS) 2013-01-21 22:00:29.760
    *** MODULE NAME:(DBMS_SCHEDULER) 2013-01-21 22:00:29.760
    *** ACTION NAME:(ORA$AT_OS_OPT_SY_1144) 2013-01-21 22:00:29.760
    SQL> SELECT JOB_NAME,STATUS,ADDITIONAL_INFO FROM DBA_SCHEDULER_JOB_RUN_DETAILS WHERE JOB_NAME = 'ORA$AT_OS_OPT_SY_1144';
    JOB_NAME
    STATUS
    ADDITIONAL_INFO
    ORA$AT_OS_OPT_SY_1144
    SUCCEEDED
    The job show completed but i want to avoid this issue in the Alert.
    Regards,
    DB

  • ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing

    Hi,
    I am trying to update an already existing Sales Order through PO Change Inbound 860. When i am performing changes in the line quantity and scheduled ship date with operation code as "Update" then it is successfully updating the Order and also we are able to generate the POAck for the updated sales order lines. But when i am rejecting one of the PO change lines by checking rejected flag, then order is getting imported successfully(I mean sales order is getting updated successfully) but during the POAck Generation i.e. 865 its raising "*ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00103: Warning: document structure does not match DTD Error at line 1*" at XML Gateway. we are using XML Gateway to process the orders, can somebody help me to get rid of this issue. Thanks in advance.
    Thanks,
    Sunil Chauhan

    Hi Kishan
    Thanks for the reply.
    Because this is an outbound transaction so i can not provide you the XML file as we are facing issue to generate the same. Also we are using oracle seeded PO outbound Ack map.
    In addition i can provide you the DTD file.
    <!-- ==================================================== -->
    <!ENTITY % RESOURCES SYSTEM "oagis_resources.dtd">
    %RESOURCES;
    <!-- ==================================================== -->
    <!ELEMENT ACKNOWLEDGE_PO_008 (CNTROLAREA, DATAAREA+)>
    <!ATTLIST VERB
         value CDATA #FIXED "ACKNOWLEDGE"
    >
    <!ATTLIST NOUN
         value CDATA #FIXED "PO"
    >
    <!ATTLIST REVISION
         value CDATA #FIXED "008"
    >
    <!ELEMENT DATAAREA (ACKNOWLEDGE_PO)
    >
    <!ELEMENT ACKNOWLEDGE_PO (POORDERHDR, POORDERLIN*)
    >
    <!ELEMENT POORDERHDR ((%DATETIME.DOCUMENT;)?, (%OPERAMT.EXTENDED.T;)?, POID, POTYPE, ACKREQUEST?, CONTRACTB?, CONTRACTS?, DESCRIPTN?, NOTES*, OPRAMTAUTH?, PORELEASE?, TAXWHEXMPT?, USERAREA?, ACKHEADER, ATTCHREF*, CHARGE*, PARTNER*, POTERM*)
    >
    <!ELEMENT ACKHEADER (SENDER, (%DATETIME.PROMDELV;)?, (%DATETIME.PROMSHIP;)?, ACKCODE, DESCRIPTN?, NOTES*, SALESORDID?, USERAREA?)
    >
    <!ELEMENT POTERM (DESCRIPTN?, TERMID?, ((DAYOFMONTH, PROXMONTH) | DAYSNUM), ((%OPERAMT.EXTENDED.T;) | (%QUANTITY.PERCENT;)), USERAREA?)
    >
    <!ELEMENT POORDERLIN ((%QUANTITY.ORDERED;), (%DATETIME.NEEDDELV;)?, (%OPERAMT.UNIT.T;)?, POLINENUM, DRAWING?, HAZRDMATL?, ITEMRV?, ITEMRVX?, NOTES*, PACKING?, POLNSTATUS?, TAXWHEXMPT?, ((DESCRIPTN, ITEM?, ITEMX?, UPC?) | (ITEM, ITEMX?, UPC?) | (ITEMX, UPC?) | (UPC)), USERAREA?, ACKLINE*, ATTCHREF*, CHARGE*, DISTRIBUTN*, PARTNER*, POTERM*, POSUBLINE*, POLINESCHD*)
    >
    <!ELEMENT ACKLINE ((%DATETIME.PROMDELV;)?, (%DATETIME.PROMSHIP;)?, (%QUANTITY.ORDERED;)?, ACKCODE, NOTES*, SALESORDID?, USERAREA?)
    >
    <!ELEMENT POSUBLINE ((%QUANTITY.ITEM;), DRAWING?, ITEMRV?, ITEMRVX?, PSBLINENUM?, ((DESCRIPTN, ITEM?, ITEMX?, UPC?) | (ITEM, ITEMX?, UPC?) | (ITEMX, UPC?) | (UPC)), USERAREA?)>
    <!ELEMENT POLINESCHD ((%DATETIME.NEEDDELV;), (%QUANTITY.ORDERED;), DESCRIPTN?, PSCLINENUM?, USERAREA?)
    >
    Thanks,S
    --Sunil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing L

    Hi There,
    I am trying to load XML data [Given Below] into a table using "Load XML Data" option.
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <ID>13</ID>
    <TYPE_SEQ>8</TYPE_SEQ>
    <TYPE>B749</TYPE>
    <TYPE_DESC>B758</_TYPE_DESC>
    <EFFECTIVE_FROM>2099-01-01</EFFECTIVE_FROM>
    <EFFECTIVE_TO>2099-01-01</EFFECTIVE_TO>
    <CREATED_BY>958344</CREATED_BY>
    <CREATED_ON>2099-01-01</CREATED_ON>
    <UPDATED_BY>172283</UPDATED_BY>
    <UPDATED_ON>2099-01-01</UPDATED_ON>
    </ROW>
    </ROWSET>
    It throws the following error.
    ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00222: error received from SAX callback function
    Can any one advice the solution please.
    -Sudheer.

    Hi Sudheer,
    This is caused by the date format you are using. Probably it is not matching with your NLS settings. Check your NLS settings, what the date format is, and use that in the XML.
    Check it with this code:
    SELECT XMLELEMENT("date", sysdate) FROM dual;Make sure, you have your NLS_DATE settings in the same format.
    Check it with:
    SELECT * FROM v$nls_parameters WHERE parameter = 'NLS_DATE_FORMAT'And then make sure it is the same by setting for example:
      ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD';Greetings,
    Rutger

  • Windows OS authentication fails ORA-1017 after renaming AD user

    When a user is renamed in Active Directory, they can no longer connect to the Oracle DB thru OS authentication. There is no OID/DIP integration.
    sqlnet.ora
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
    NAMES.DEFAULT_DOMAIN = cal.com.br
    create user "CAL\RENATOH" IDENTIFIED EXTERNALLY
    GRANT CREATE SESSION TO "CAL\RENATOH"
    AD User CAL\RENATOH can connect to DB as 'sqlplus /'
    But after renaming AD User CAL\RENATOH to CAL\RENATOH1 and dropping DB user CAL\RENATOH and creating DB user CAL\RENATOH1
    drop user "CAL\RENATOH";
    create user "CAL\RENATOH1" IDENTIFIED EXTERNALLY;
    Now OS authentication 'sqlplus /' fails 'ORA-01017: invalid username/password; logon denied'
    Once I recreate the DB user with old AD user name 'CAL\RENATOH', OS authentication succeeds.
    create user "CAL\RENATOH" IDENTIFIED EXTERNALLY;
    ==========
    C:\Windows\system32>set username
    USERNAME=RENATOH1
    C:\Windows\system32>sqlplus /@rmlab001
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue Jul 3 15:16:46 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning and OLAP options
    SQL> select SYS_CONTEXT('USERENV','OS_USER') from dual;
    SYS_CONTEXT('USERENV','OS_USER')
    CAL\RENATOH
    =================
    Why the Database is still looking for old AD user name?
    Does Oracle cache information about OS authenticated users?

    Hi,
    Have you added the NPS server to the RAS and IAS Servers
    security group in AD DS?
    The NPS server needs permission to read the dial-in properties of user accounts during the authorization process.
    Try to add a loal user on the NPS server, then test with the local user. If it works, it means that there is something wrong between NPS and DC.
    If the issue persists, it means that the configuration between NPS and NAS is wrong.
    Steven Lee
    TechNet Community Support

  • ORA-20011: Approximate NDV failed: ORA-29913: error in executing ODCIEXTTAB

    Hello All,
    I am using Oracle 11.2.0.3
    in my alert logs I found the below errors:
    ORA-20011: Approximate NDV failed: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    KUP-11024: This external table can only be accessed from within a Data Pump job.to resolve that i did the below steps:
    SELECT owner_name, job_name, operation, job_mode,
    state, attached_sessions
    FROM dba_datapump_jobs
    WHERE job_name NOT LIKE 'BIN$%'
    ORDER BY 1,2; the result was that there is two running jobs and the attached_session flag was equal to 1, something like the below:
    OWNER_NAME JOB_NAME            OPERATION JOB_MODE  STATE       ATTACHED
    SCOTT      SYS_IMPORT_TABLE_05      IMPORT TABLE RUNNING        1
    SCOTT      SYS_IMPORT_TABLE_01 IMPORT TABLE     RUNNING        1 so i stopped these 2 jobs using the below statements:
    SET serveroutput on
    SET lines 100
    DECLARE
       h1 NUMBER;
    BEGIN
       h1 := DBMS_DATAPUMP.ATTACH('SYS_IMPORT_TABLE_05','SCOTT');
       DBMS_DATAPUMP.STOP_JOB (h1);
    END;
    SET serveroutput on
    SET lines 100
    DECLARE
       h1 NUMBER;
    BEGIN
       h1 := DBMS_DATAPUMP.ATTACH('SYS_IMPORT_TABLE_01','SCOTT');
       DBMS_DATAPUMP.STOP_JOB (h1);
    END;
    /now the result become like below as stop pending in the state column:
    OWNER_NAME JOB_NAME            OPERATION JOB_MODE  STATE       ATTACHED
    SCOTT      SYS_IMPORT_TABLE_05      IMPORT TABLE STOP PENDING 1
    SCOTT      SYS_IMPORT_TABLE_01 IMPORT TABLE     STOP PENDING 1 for that I did more research and i dropped two temporary external tables after I got their names using the below query:
    select OWNER,OBJECT_NAME,OBJECT_TYPE, status,
    to_char(CREATED,'dd-mon-yyyy hh24:mi:ss') created
    ,to_char(LAST_DDL_TIME , 'dd-mon-yyyy hh24:mi:ss') last_ddl_time
    from dba_objects
    where object_name like 'ET$%'
    /but nothing changed in the output of the below query, the state stayed STOP PENDING
    SELECT owner_name, job_name, operation, job_mode,
    state, attached_sessions
    FROM dba_datapump_jobs
    WHERE job_name NOT LIKE 'BIN$%'
    ORDER BY 1,2; for that I used stop job but with the immediate flag as 1
    DBMS_DATAPUMP.STOP_JOB (h1,1); now the result of the query is NOT RUNNING in the state column:
    OWNER_NAME JOB_NAME            OPERATION JOB_MODE  STATE       ATTACHED
    SCOTT      SYS_IMPORT_TABLE_05      IMPORT TABLE     NOT RUNNING   0
    SCOTT      SYS_IMPORT_TABLE_01      IMPORT TABLE     NOT RUNNING   0 and I discovered that one of my import jobs that I did not realize that it was running, failed due to a fatal error, it is the one related to the import of one table.
    My question:
    Now the below query should return zero records no ?
    How i can clear the result ? and does it affect any future import jobs for the same table?
    SELECT owner_name, job_name, operation, job_mode,
    state, attached_sessions
    FROM dba_datapump_jobs
    WHERE job_name NOT LIKE 'BIN$%'
    ORDER BY 1,2;

    hi just drop all tables that return be the query below i face some issue after 1 months
    SQL> select owner, TABLE_NAME, DEFAULT_DIRECTORY_NAME, ACCESS_TYPE
    from dba_external_tables
    this error appear due to this table must be cleanup auto when the datadump complete the job ,but it's not dropped as well so when gather statistics this error appear,
    so this drop table .

  • FAILED - ORA-01031: insufficient privileges

    Hi All,
    When i am executing the procedure i am getting below error
    FAILED - ORA-01031: insufficient privileges.
    My procedure is given below.
    create or replace procedure SAM (start_date_key number,end_date_key number) as
    varstdt number:=start_date_key;
    varendt number:=end_date_key;
    MSG varchar2(3456);
    varTblnm varchar2(3250);
    varDtkey varchar2(3250);
    v_chck number(9);
    varSQLstmt varchar2(2340);
    begin
    for r1 in (select table_name from Sales_table where table_name='SALES')
    loop
    varTblnm := r1.table_name;
    varSQLstmt := 'create table '||varTblnm||'_'||varendt||' as select * from '||varTblnm;
    execute immediate varSQLstmt;
    end loop;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    MSG := 'FAILED - '||SUBSTR (SQLERRM, 1, 200);
    dbms_output.put_line('Error ' ||MSG );
    commit;
    RAISE;
    end SAM;
    please let me know if there are any mistakes in the code.

    please let me know if there are any mistakes in the code.r1.table_name will always be equal to SALES. Therefore vartblnm will always be SALES. Is what you want?
    start_date_key and v_chck are never used.
    Then you attempt to create multiple tables, all called SALES_ suffixed with the value passed for end_date_key. You can't create several tables with the same name.
    end_date_key and varendt are numeric. You should cast them as varchar and test them before trying to use them as part of a file name. What if the number passed is negative? Or fractional?
    To commit within a procedure is an awful bug.
    Your WHEN OTHERS clause may be hiding the information needed to debug the code. Get rid if it.
    There are no comments anywhere.
    On what line does the error occur?

  • Loadpsp, rman returns a TNS ORA-12560: TNS:protocol adapter error

    loadpsp, rman returns a TNS ORA-12560: TNS:protocol adapter error.
    also the enterprsie manager is also not running. please help

    What platform are you running?
    Do you have ORACLE_HOME and ORACLE_SID env. variables defined? and if they are, are they correct?
    does your PATH env. variable references the correct Oracle home directory?
    If Windows, is the service for the database instance running?
    can you connect using SQL*Plus?

  • Event test "Archive Full (%)" failed: ora-28009:

    Trying to create an event that will send an email with OEM but Im getting this message
    Event test "Archive Full (%)" failed: ora-28009: connection to sys should be as sysdba or sysoper in the event viewer.
    Im not sure what this refers to though - to connect to Management Server it has to be sysman user. What "connection" is this referring to ???
    Oracle 9.2.0.5.0 (due to migrate to 10g at years end hurrah!)
    Windows XP (now, but AIX once in production)

    OK thanks for that. I went ahead and did this:
    Configuration
    Manage Administrators
    Selected SYSMAN
    Preferred Credentials
    Selected target database and erased everything from the Database Credentials fields (where previously we had SYS/AS SYSDBA etc. )
    I am getting the same darn error as before.
    Anyway, the OEM help for this screen says
    Role Select the role from the pull-down list. You need to login with the SYSDBA or SYSOPER role to start up or shut down a database.
    Still stuck on this. I dont properly understand the error itself - it is telling me that the connection to sys should be as sysdba - and I am connecting as sysdba. ... . not sure what else I can do apart from try and write a script and forget this altogether.
    Thanks
    DA
    Also, in the Event Viewer, according the documentation, there is an "advice" tab. I see no such tab. :(
    When I try to create an event without any information supplied to the fields for SYSMAN Preferred Credentials, I get this in Event Viewer:
    "Failed - ora-0:normal , successful completion."
    Now I am really confused - a "failed, normal completion" ??
    Message was edited by:
    Dan A
    Message was edited by:
    Dan A

  • ORA-12001 : execution of 1 Job faile ORA-06512

    Hello,
    I am execute a procedure than run a Job of Visual Basic 6.0, the connection is with oo4o.
    This code :
    PROCEDURE SP_EXECUTE_PROC
    DBMS_JOB.SUBMIT(n_jobnow, 'BEGIN USROWSUC.USP_PRC_VERIF_PREC; END;', SYSDATE, 'NULL');
    DBMS_JOB.RUN(n_jobnow);
    COMMIT;
    END;
    The error is the next :
    ORA-12011: execution of 1 jobs failed ORA-06512: at "USROWSUC.SP_EXECUTE_PROC", line 27
    ORA-06512: at line 1.
    This error is only once, the next execution is ok
    The database es Oracle 8.1.7.
    Help me please!
    Best regards,
    Joseph

    Why you don't call your USROWSUC.USP_PRC_VERIF_PREC procedure directly from VB? You have the same result.
    VERY VERY BAD: Executing your job you will create each time a new DB-JOB.
    If you want to mantain your very bad procedure try to move the commit statement after the submit call.
    PROCEDURE SP_EXECUTE_PROC
      DBMS_JOB.SUBMIT(n_jobnow, 'BEGIN USROWSUC.USP_PRC_VERIF_PREC; END;', SYSDATE, 'NULL');
      COMMIT;
      DBMS_JOB.RUN(n_jobnow);
    END;Bye, Aron

  • Rman archivelog backup fails with rman-03002,ora-19563

    Hi,
    D:\ Oracle- -\BIN\RMAN TARGET / NOCATALOG
    RMAN> backup archivelog all;
    RMAN-03002: Error with backup command on 06-25-2013
    ORA-19563: Header-Validation is not successful.
        fails with the given errors.
    11.2.0.2 PROD DB on Windows Server 2008  R2 Enterpriise.
    When I issue BACKUP INCREMENTAL LEVEL 0 DATABASE; it works fine. but with archivelog it is creating problems. Unfortunatly, I have not found exactly the same problem on google and on Oracle support.
    The DB is using INIT.ORA and last time when I switched the mode to archive log mode I set the parameter like SCOPE=MEMORY as SPFILE was not in use and ALTER SYSTEM with SCOPE=BOTH  FRA destination and size, but after the DB restarting of course that setting is gone and I am having these problems.
    Please suggest.
    Thanks a lot.
    Best Regards,

    Hi,
    Thanks a lot.
    I don't think that archivelogs were relocated, except I changed the location yesterday.
    As I wrote at the start that because of INIT.ORA file being in use instead of SPFILE. I set DB_RECOVERY_FILE_DEST, DB_RECOVERY_DEST_SIZE after changing the DB mode to ARCHIVELOG, but DB was restarted by somebody else, and as the parameter changing was NOT PERMANENT, it rollback.
    LOG_ARCHIVE_DEST was set to d:\oradata\db with archivelog mode but db_recovery_file_dest and size was set to 0. Now here, I have no idea that whether archivelogs were not being backed up or deleted physically, but I guess that as log_archive_dest parameter is deprecated and mode is set to archivelog with no real ARCHIVELOG DESTINATION. Please correct me if I am wrong or totally wrong :-)
    I performed DELETED EXPIRED ARCHIVELOG ALL, and it deleted 49 EXPIRED objects.
    Now CROSSCHECK ARCHIVELOG ALL and LIST ARCHIVELOG ALL shows nothing.
    LIST BACKUP OF ARCHIVELOG ALL has of course those 49 archivelog gap.
    Could you please tell the impacts of those 49 missing archivelogs. Retention policy is set to 14 days. I mean the risk is for 14 days right? As anyhow, the older backups are being DELETED according to retention policy of RMAN.

  • RMAN backup results in ORA-19504: failed to create file

    Hi there,
    We are receiving following error when we issue archivelog backup command.
    input archive log thread=2 sequence=63449 recid=112736 stamp=685370768
    input archive log thread=2 sequence=63450 recid=112738 stamp=685373560
    input archive log thread=2 sequence=63451 recid=112739 stamp=685374337
    input archive log thread=2 sequence=63452 recid=112741 stamp=685376999
    input archive log thread=2 sequence=63453 recid=112744 stamp=685377082
    channel ORA_DISK_5: starting piece 1 at 29-APR-09
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/29/2009 10:09:17
    ORA-19504: failed to create file "/rmanback/arch_27628.arc"
    ORA-27040: skgfrcre: create error, unable to create file
    SVR4 Error: 2: No such file or directory
    Any solutions, Please.
    Thanks,
    Balu.

    the mount point /rmanback has full write/read permission.
    root@cmwdb2 # pwd
    /rmanback
    root@cmwdb2 # ls -lrt |pg
    total 421996016
    -rwxrwxrwx 1 oracle dba 604926976 Apr 25 07:57 arch_27391.arc
    -rwxrwxrwx 1 oracle dba 675586048 Apr 25 07:57 arch_27392.arc
    -rwxrwxrwx 1 oracle dba 710009856 Apr 25 07:57 arch_27390.arc
    -rwxrwxrwx 1 oracle dba 733988864 Apr 25 07:57 arch_27388.arc
    -rwxrwxrwx 1 oracle dba 741121024 Apr 25 07:57 arch_27389.arc
    -rwxrwxrwx 1 oracle dba 44449792 Apr 25 07:58 _c-1556269231-20090425-03.arc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • I can't sign up App Store at Malaysia

    i got a lot of problem when sign in with pre-apple id account after sign-in we will need to review, and do a lot of configure before using the apps store but some of the setting is preset and we can't configure wonder why it still goes wrong ! (stupi

  • How do I change the footer, but not the header?

    Hi there. I'm working with a 475 pages document (in Adobe Acrobat X Pro) which already have a header and a footer (header describes document name, footer is the current page number). I have added some new pages in the middle of the document and want

  • Retry count JMS message on Proxy Service

    I have a proxy service listening to a JMS Queue. It is a task service. I need to try some functionality. If an error occurs (probably because of an offline external service/ business service) I need to rollback and retry). I want to do this for examp

  • Flash crash?

    Why does my flash player  (windows 8) latest verson, keep crashing for no reason??

  • Importing a bookmark file

    I have a bookmark file from a previous version of firefox. How can I import the data from that file ?