ORA-16038: sequence of log 2 422 cannot be archived

Hello

I have a problem, when I try to start a database:

SQL > the judgment;

ORACLE instance stops.

SQL > startup open;

ORACLE instance started.

Total System Global Area 1577058304 bytes

Bytes of size 1305760 fixed

964690784 variable size bytes

603979776 of database buffers bytes

Redo buffers 7081984 bytes

Mounted database.

ORA-16038: sequence of log 2 422 cannot be archived

ORA-19504: cannot create the file «»

ORA-00312: wire 2 1 online journal:

"+ DATAGROUP/frge/onlinelog/group_2.354.833381221".

ORA-00312: wire 2 1 online journal:

"+ DATAGROUP/frge/onlinelog/group_2.355.833381221".

Thank you

Hello

Please check your alert log content, that the location of the log file of the alerts can be found throughout this sql:

SQL > select * from v$ diag_info;

also, check out this site refrence: http://itbloggertips.com/2013/05/oracle-not-started-database-startup-fail-with-ora-16038-ora-19809-ora-00312-error/

Kind regards

Tags: Database

Similar Questions

  • ORA-16038: log 1 # 1292 sequence cannot be archived ORA-19809: limit exceede

    I get this error at the start of the 10 g database

    ORA-16038: log 1 sequence # 1292 can be checked
    ORA-19809: limit exceeded for file recovery
    ORA-00312: thread 1 1 online journal:
    ' / usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/onlinelog/o1_mf_1_45ngtrx0_.log'



    Can anyone help me, it's very urgent.

    Lavenu

    Hello
    It seems that your flash recovery area is full.

    To check this, run the following query. It will show the size of the recovery area and how complete it is:
    fixed lines 100
    Col name format a60
    Select name
    floor (space_limit/1024/1024) "size MB"
    ceil (space_used/1024/1024) "used MB"
    v $ recovery_file_dest
    by name
    /
    To resolve this problem, you must expand the flash recovery area or delete some files from it.

    If you have the available disk space, expand the recovery area:

    ALTER system set db_recovery_file_dest_size = scope = both
    /
    To delete the files, you must use RMAN. Manually move or delete files has no effect because oracle will know. Is the obvious choice for backup and remove some log files archive. However, if you usually write your RMAN backups on disk, this could prove difficult. RMAN will attempt to write the backup of the recovery flash... area that is full. You can try to send the backup also using a command like this:

    RMAN target / catalog user/pass@rmancat

    Run {}
    allocate channel t1 type disk;
    backup ARCHIVELOG all delete them input format ' //arch_%d_%u_ %s;
    output channel t1;
    }
    This backup all archive logs files in a directory of your choice and then remove them.

    Kind regards
    Navneet

  • ORA-16038: log 1 sequence # 16 can be archived

    Dear all,

    I use oracle database 10g release2 on linux platform...

    I'm moving any object of type a tablespace to another tablespace logsegment.

    But because of the small space for redo log my alter query file has been hanged and not successfully completed. and the

    Full poster book.

    then I drop the closing database query using the immediate shutdown command.

    After that when I'm trying start my database in normal mode, I am getting following error...

    ERROR on line 1:
    ORA-16038: log 1 sequence # 16 can be archived
    ORA-19502: error on the write file ' ', blockno (blocksize =)
    ORA-00312: thread 1 1 online journal:
    ' / var/oracle/oradata/clone/redofiles/REDO_RLOG_01a.dbf'
    ORA-00312: thread 1 1 online journal:
    ' / var/oracle/oradata/clone/redofiles/REDO_RLOG_03b.dbf'


    so pls suggest me the solution for this problem.

    Published by: user13144127 on February 16, 2012 11:46

    Same question, same mistakes, same description but different user names. with double

    database does not open due to the ORA-16038: log 1 sequence # 16 can not be arch

    Lock this thread.

  • ORA-16038, ORA-00354, ORA-00312 block header corrupt redo log

    Hi all

    I'm Ann. I'm not an Oracle DBA. Please bear with me. However, I have to accelerate to become a DBA during the time that the dedicated DBA is on maternity leave.
    As usual, we have the online site and test site.
    She gave me some notes about how to take care of the database of active and application (Oracle 10 g).
    But so far, I can't do a lot of command calls the site online because we have plenty of space for the server, also the biggest part of the task has been scripted. So, it can work automatically.

    However, the test database is not like that. There is not automatically restart scripts as in the live system.
    Recently I canont access to the test database. So I connect to the test server, find the folder that contains the Archive Log files is nearly 98%.
    So I remove some of the old dbf files (I did based on the Advisor to the Chief of this last time, it happened a long time ago)

    After clear some old files, make a df h the rate at 58%.
    However, the database is still not available (can't open I think)
    I connect to the database, making an immediate halt, but Hung Server.
    So, I ask a network engineer to restart the database server.
    Of course, the machine is stop so the database must be completed.
    After the machine restarts, I connect as sysdba but still cannot open the database.
    The error is as below



    Mounted database
    ORA-16038: log 1 sequence # 1013 cannot be archived
    ORA-00354: corrupted redo log block header
    ORA-00312: thread 1 1 online journal:
    *'/Data/oradata/barn/onlinelog/o1_mf_1_2658nhd4_.log'*
    ORA-00312: thread 1 1 online journal:
    *'/arclogs/oradata/BARNTEST/onlinelog/o1_mf_1_2658nhd4_.log'*

    I search and I get these
    ORA-16038, ORA-00354, ORA-00312 block header corrupt redo log

    + (http://arjudba.blogspot.co.nz/2008/05/ora-16038ora-00354ora-00312-corrupt.html) +.
    Error description:
    ------------------------
    Normal users could not connect to the database. He messaged ORA-00257: internal connection only up to this just released. When you try to archive the redo log, it returns the message.

    ORA-16038: log %s sequence # %s cannot be archived
    ORA-00354: corrupted redo log block header
    ORA-00312: ' %s % s: "%s '" thread online journal


    Explanation of the problem:
    -------------------------------
    Whenever the normal user tried to connect to the database returns the error as it is designed in

    ORA-00257. But you've noticed that there is enough space in the V$ RECOVERY_FILE_DEST. Whenever you look at alerts log, you will see the ORA-16038, ORA-00354, error ORA-00312 serial. Produced error as because it doesn't have archives online redolog due to an alteration in the online redo file.

    Solution of the problem:
    --------------------------------
    Step 1) while making your database running clearly non archived redo log.
    SQL > alter the clear database untarred logfile "logilename";

    What makes corruption disappear which causes the contents of the redo online deleted file.
    Step 2) make a full backup of the database

    Is my question here safe to apply the following steps:
    We have 2 logs online that cause the error, until I need to erase the 2 files.

    For step 2, how to make a backup with RMAN.
    Can you suggest a command line safe for me to use. (The EM console surrently do not work on the test database server)

    I really need that test database managed as my apps APEX run on this need to be exported to the live system.

    Really appreciate any help here, once again, it's an Oracle 10 g release 1.

    Kind regards

    Published by: Ann586341 on April 30, 2012 15:40

    Published by: Ann586341 on April 30, 2012 15:40

    Your problem is with redolog 1

    SQL > select * v log$;

    check the status of the Group 1 regardless of whether ACTIVE or INACTIVE.

    If it is INACTIVE, then run the command below

    SQL > ALTER DATABASE CLEAR NO ARCHIVED LOGFILE GROUP 1;

    then

    SQL > alter database open

    Published by: Vishwanath on April 30, 2012 10:11

  • ORA-00312 cannot be archived redo the expedition Archives

    Dear fans of Oracle,

    Weve got a site that seems to give us the following error sporadically, is there someone with the same experience or know how what to do or maybe all tracks at the location of the research would be very welcome.

    Thanks in advance!


    It should not be related to privileges or space as shown below:

    sppaxdb02 # df h

    Size of filesystem used avail capacity mounted on

    / G G 187 32, 156 G 17%.

    / dev 32 187 G 156 G 17% / dev

    /Flashback 295G 138 G 155 G 48% /flashback

    / zdbase/data1 266G 112 G 151 G 43% / zdbase/data1

    / zdbase/index1 172 50 G 121 G 30% / zdbase/index1

    / zdbase / 49G 30 G 18G 63% / zdbase/system

    proc 0K 0K 0K 0% / proc

    CTFs 0K 0K 0K 0% / system/contract

    mnttab 0K 0K 0K 0% / etc/mnttab

    objfs 0K 0K 0K 0% / system/object

    Exchange 58G 368K 58G 1% / etc/svc/volatile

    /Platform/sun4v/lib/libc_psr/libc_psr_hwcap2.so.1

    187 G 32G 156G 17% /platform/sun4v/lib/libc_psr.so.1

    /Platform/sun4v/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1

    187 G 32G 156G 17% /platform/sun4v/lib/sparcv9/libc_psr.so.1

    FD 0K 0K 0K 0% / dev/fd

    Exchange 58G 64 K 58 G 1% / tmp

    Exchange 58G 48K 58G 1% / var/run

    sppaxdb02 #.

    sppaxdb02 # ls - lhart

    Total 43734

    drwxr-xr-x 4 root root 512 15 October 2013...

    drwxr-xr-x 5 dba oracle 512 16 October 2013 MVF2

    -rw - r - 1 oracle dba M 21 Apr 29 07:36 bkupcontrolfile.ctl

    DBA oracle drwxr-xr-x 3 512 Apr 29 07:36.

    -rw - r - 1 oracle dba 96K Apr 29 07:36 bkupspfile.ora

    sppaxdb02 #.

    Alert and tracefile example below:

    Journal entry archived 71728 extra for each sequence 1 52098 ID 0x7e57cb8 dest 10 thread:

    Mar 29 08:48 Apr 2014

    Errors in the /var/oracle/data/logs/impax/diag/diag/rdbms/mvf2/MVF/trace/MVF_arc1_2071.trc file:

    ORA-00314: connect 13 of thread 1, sequence expected # 52100 does not match 52098

    ORA-00312: wire 13 1 online journal: ' / usr/mvf/data/dbase/redo/redo_stdby13.log'

    Mar 29 08:48 Apr 2014

    RFS [11]: Journal selected 13 for thread 1 sequence 52100 dbid-91217615 branch of the 787868464

    Mar 29 08:48:01 Apr 2014

    ' / var/oracle/data/logs/impax/diag/diag/rdbms/mvf2/MVF/trace/MVF_arc1_2071.trc ' 63 lines, 2458 characters

    Trace file /var/Oracle/data/logs/IMPAX/diag/diag/RDBMS/mvf2/MVF/trace/MVF_arc1_2071.TRC

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    With the partitioning, Data Mining and Real Application Testing options

    ORACLE_HOME = / opt/oracle/current

    Name of the system: SunOS

    Name of the node: sppaxdb02

    Version: 5.10

    Version: Generic_147147-26

    Machine: sun4v

    Instance name: MVF

    Redo thread mounted by this instance: 1

    Oracle process number: 31

    The Unix process PID: 2071, image: oracle@sppaxdb02 (ARC1)

    2013-10-15 13:27:44.362

    SESSION ID: (311.1) 2013-10-15 13:27:44.362

    CUSTOMER ID :() 2013-10-15 13:27:44.362

    NAME OF THE SERVICE :() 2013-10-15 13:27:44.362

    MODULE NAME :() 2013-10-15 13:27:44.362

    ACTION NAME :() 2013-10-15 13:27:44.362

    Repeat customer shipping performing a pending connection

    OCISessionBegin failed. Error - 1

    .. Detailed error OIC val 1031 and error message is "ORA-01031: insufficient privileges"

    '

    OCISessionBegin failed. Error - 1

    .. Detailed error OIC val 1031 and error message is "ORA-01031: insufficient privileges"

    '

    krsu.c 13:27:44.706 4595 2013-10-15

    Connected mode standby successfully

    Customer logon and security successful trading!

    DDE rules only the execution of: ORA 312

    2014-01-23 10:15:48.476

    -LAUNCH event-driven Actions Dump-

    -END event driven Actions Dump-

    -LAUNCH DDE shares Dump.

    Execution of the actions of SYNCHRONIZATION

    -START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async)-

    Sent successfully

    -END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (CSEC 0, SUCCESS).

    Execution of ASYNC actions

    -DDE shares Dump END (total 0 CSEC).

    ORA-00322: Journal 13 thread 1 is not current copy

    ORA-00312: wire 13 1 online journal: ' / usr/mvf/data/dbase/redo/redo_stdby13.log'

    DDE rules only the execution of: ORA 312

    2014-04-29 08:48:00.534

    -LAUNCH event-driven Actions Dump-

    -END event driven Actions Dump-

    -LAUNCH DDE shares Dump.

    Execution of the actions of SYNCHRONIZATION

    -START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async)-

    Sent successfully

    -END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (CSEC 0, SUCCESS).

    Execution of ASYNC actions

    -DDE shares Dump END (total 0 CSEC).

    ORA-00314: connect 13 of thread 1, sequence expected # 52100 does not match 52098

    ORA-00312: wire 13 1 online journal: ' / usr/mvf/data/dbase/redo/redo_stdby13.log'

    2014-04-29 08:48:01.444

    krsk_srl_purge_abandoned: no more purgable SRL to connect B-787868464 13. T-1. S-52100

    ORA-16038: log sequence 9 # 20395 can be archived

    ORA-19502: error on the write file ' ', block number (block size =)

    ORA-00312: wire 9 1 online journal: ' / usr/mvf/data/dbase/redo/redo09.log'

    1

    ORA-16038: log sequence 9 # 20467 can be archived

    ORA-19502: error on the write file ' ', block number (block size =)

    ORA-00312: wire 9 1 online journal: ' / usr/mvf/data/dbase/redo/redo09.log'

    1

    MESSAGE_TEXT

    --------------------------------------------------------------------------------

    CNT

    ----------

    ORA-16038: log sequence 9 # 20530 can be archived

    ORA-19502: error on the write file ' ', block number (block size =)

    ORA-00312: wire 9 1 online journal: ' / usr/mvf/data/dbase/redo/redo09.log'

    1

    ORA-16038: log sequence 9 # 20665 can be archived

    ORA-19502: error on the write file ' ', block number (block size =)

    ORA-00312: wire 9 1 online journal: ' / usr/mvf/data/dbase/redo/redo09.log'

    MESSAGE_TEXT

    --------------------------------------------------------------------------------

    CNT

    ----------

    1

    172 selected lines.

    You have two different sets of errors.  ORA-314/312 and ORA-16038/19502.

    Events of waiting will not help you.

    For the 312-314, look back through your journal DBA actions and see if the startup log file has been overrwritten by the DBA.

    For the 16038/19052, check if your archivelog destination is full. Check your FastRecoveryArea.  Check the ownership and permissions.

    OR just connect an SR and let the Oracle Support to worry about what you should be concerned.

    Hemant K Collette

  • journal sequence cannot be archived.

    Hello

    SQL > startup

    ORACLE instance started.

    Total System Global Area 465567744 bytes

    Bytes of size 1220024 fixed

    146801224 variable size bytes

    314572800 of database buffers bytes

    Redo buffers 2973696 bytes

    Mounted database.

    ORA-16038: 3 log sequence # 25 can be archived

    ORA-19502: error on the write file ' ', blockno (blocksize =)

    $ pwd

    / u01/app/Oracle/flash_recovery_area/ORCL/ARCHIVELOG/2014_03_27

    ORA-00312: wire 3 1 online journal: ' / u01/app/oracle/oradata/orcl/redo03.log'

    SQL > list of archive logs

    Database log mode Archive Mode

    Active AutoArchive

    Destination of archive USE_DB_RECOVERY_FILE_DEST

    More old sequence of journal on line 25

    Log sequence to archive 25

    Current log sequence 27

    SQL >!

    [oracle@oel5 ~] $ cd/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2014_03_27

    [oracle@oel5 ~] $ ls - he's

    Total 350616

    -rw - r - 1 oracle oinstall 51229184 Mar 27 08:02 o1_mf_1_18_9m73fdsq_.arc

    -rw - r - 1 oracle oinstall 51229184 Mar 27 08:02 o1_mf_1_19_9m73fhsz_.arc

    -rw - r - 1 oracle oinstall 51229184 27 Mar 08:03 o1_mf_1_20_9m73ft15_.arc

    -rw - r - 1 oracle oinstall 51229184 27 Mar 08:04 o1_mf_1_21_9m73j0v9_.arc

    -rw - r - 1 oracle oinstall 51229184 27 Mar 08:05 o1_mf_1_22_9m73kxr5_.arc

    -rw - r - 1 oracle oinstall 51229184 27 Mar 08:05 o1_mf_1_23_9m73m8qb_.arc

    -rw - r - 1 oracle oinstall 51229184 27 Mar 08:05 o1_mf_1_24_9m73n3gr_.arc

    How can I solve this?

    Hello

    I think that your/U01 is full

    Check the free space

    Use the df command

    Concerning

  • The event log online help cannot be displayed because the default browser could not be started. Class not registered

    Hello. I live in Brazil, Rio de Janeiro and already installed W8 Pro original Microsoft license.

    When I need to use the event online Help Viewer, a reception this message - the event log online help cannot be displayed because the default browser could not be started.  Class not registered.
    Help, please.
    Thank you
    Carlos.

    Hi Carlos,

    Thanks for posting your query in the Microsoft Community Forums.

    After the description of the question, I understand that you are not able to access the online help for Event Viewer.

    1. do you receive an error message when you try to open the online help for Event Viewer?
    2. who is the default browser on your computer?

    Method 1:


    "The event log online help" her will bring you to the following Web page:

    http://www.Microsoft.com/technet/support/ee/ee_basic.aspx

    I suggest you try to access the above mentioned Web page to see if it works.

    Method 2:

    You can see the article mentioned below for how to set Internet Explorer as default browser.

    Make Internet Explorer your default browser

    http://Windows.Microsoft.com/en-us/Internet-Explorer/make-IE-default-browser#IE=IE-10

    It will be useful. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you

  • ORA-41412: results changed during playback; failover cannot continue

    To exercise the re-run, I followed the instructions here: application of continuity for Java

    I have created a connection, run, sql (SELECT * from S13NEW_ODI_REPO.) SNP_CONNECT WHERE CON_NAME = "WORKREP"), and then created a second connection and disconnect sessions with: {call DBMS_SERVICE. DISCONNECT_SESSION ("< service >", IMMEDIATE)}, then run sql on the first connection again and get the exception and the getNextException() below.

    What it means? What is missing to replay the transaction?

    java.sql.SQLRecoverableException: no more data to read from socket

    at oracle.jdbc.driver.T4CMAREngineStream.unmarshalUB1(T4CMAREngineStream.java:456)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:397)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:587)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:221)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:49)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:939)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1150)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:4791)

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:4838)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1501)

    to oracle.jdbc.proxy.oracle$ $1jdbc $1replay $1driver $1TxnReplayableStatement $2oracle $1jdbc $1internal $1OraclePreparedStatement $$ Proxy.executeQuery (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:160)

    to com.sun.proxy. $Proxy16.executeQuery (unknown Source)

    at Test.execStatement (Test.java:225)

    at Test.run (Test.java:158)

    at Test.main (Test.java:109)

    java.sql.SQLException: ORA-41412: results changed during playback; failover cannot continue

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1059)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:587)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:221)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:49)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:770)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:925)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1111)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:4791)

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:4838)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1501)

    to oracle.jdbc.proxy.oracle$ $1jdbc $1replay $1driver $1TxnReplayableStatement $2oracle $1jdbc $1internal $1OraclePreparedStatement $$ Proxy.executeQuery (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at oracle.jdbc.replay.driver.TxnReplayableBase.replayOneCall(TxnReplayableBase.java:481)

    at oracle.jdbc.replay.driver.TxnFailoverManagerImpl.replayAllBeforeLastCall(TxnFailoverManagerImpl.java:1506)

    at oracle.jdbc.replay.driver.TxnFailoverManagerImpl.handleOutageInternal(TxnFailoverManagerImpl.java:1295)

    at oracle.jdbc.replay.driver.TxnFailoverManagerImpl.handleOutage(TxnFailoverManagerImpl.java:925)

    at oracle.jdbc.replay.driver.TxnReplayableBase.onErrorForAll(TxnReplayableBase.java:314)

    at oracle.jdbc.replay.driver.TxnReplayableStatement.onErrorForAll(TxnReplayableStatement.java:633)

    to oracle.jdbc.proxy.oracle$ $1jdbc $1replay $1driver $1TxnReplayableStatement $2oracle $1jdbc $1internal $1OraclePreparedStatement $$ Proxy.executeQuery (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:160)

    to com.sun.proxy. $Proxy16.executeQuery (unknown Source)

    at Test.execStatement (Test.java:225)

    at Test.run (Test.java:158)

    at Test.main (Test.java:109)

    The problem was that I had also run "select count (*) from v$ session b where service_name =?" on the connection.  And since I had disconnected sessions, the result was different when he was executed in the replay, where the error 'changed during playback of the results.  After removing the execution of this statement, it worked fine.

  • ORA - 22992 that a remote LOB column cannot be referenced

    Hi all

    I ask a remote table on a dblink, of my diagram. I select the column values are VARCHAR2 data types. I need concatenate the values in the column, and then in the sql query.

    Given the length of the concatenation exceeds 4 000 bytes, I made a function as shown below,

    function get_concatenated_text (par1) return clob

    as

    CLOB var1;

    CLOB var2;

    Start

    Select remote_table.col1, remote_table.col2 in var1, var2 to

    remote_table@DBLINk;

    Return(var1|| var2);

    end

    now when I call this function with the appropriate arguments, why make this mistake. The remote column is varchar data type .so why LOB error? Please, experts suggest. The oracle version is 11.0.2.0.3

    ORA - 22992 that a remote LOB column cannot be referenced.

    SQL > create or replace
    function get_concatenated_text () 2
    3 par1 varchar2
    (4) return clob
    5 as
    6 var1 clob.
    CLOB 7 var2;
    Start 8
    9. Select ename,
    post 10
    11 in var1,
    12 var2
    13 of emp@orcl
    14 where rownum = 1;
    15 return(var1|| var2);
    16 end;
    17.

    The function is created.

    SQL > select get_concatenated_text ('X') of double
    2.
    ERROR:
    ORA-22992: cannot use LOB Locators selected remote tables
    ORA-06512: at "SCOTT. GET_CONCATENATED_TEXT', line 8

    no selected line

    SQL > create or replace
    function get_concatenated_text () 2
    3 par1 varchar2
    (4) return clob
    5 as
    var1 6 varchar2 (4000);
    VARCHAR2 (4000) 7 var2;
    Start 8
    9. Select ename,
    post 10
    11 in var1,
    12 var2
    13 of emp@orcl
    14 where rownum = 1;
    15 return (to_clob (var1) | var2);
    16 end;
    17.

    The function is created.

    SQL > select get_concatenated_text ('X') of double
    2.

    GET_CONCATENATED_TEXT ('X')
    --------------------------------------------------------------------------------
    SMITHCLERK

    SQL >

    SY.

  • Create the database fails with error ORA-01505: Error adding log files

    Hi all

    hope someone can help out me, I'm creating a database by using a SQL script, the content of the script is:
    create the testora database
    the user sys identified by oracle
    the user identified by oracle's system
    LogFile Group 1 ('/ u01/app/oracle/oradata/testora/redo01a.log ',' / u02/app/oracle/oradata/testora/redo01b.log') blocksize 512 re-use, 100 m in size.
    Group 2 ('/ u01/app/oracle/oradata/testora/redo02a.log ',' / u02/app/oracle/oradata/testora/redo02b.log') blocksize 512 re-use, 100 m in size.
    Group 3 ('/ u01/app/oracle/oradata/testora/redo03a.log ',' / u02/app/oracle/oradata/testora/redo03b.log') blocksize 512 re-use, 100 m in size.
    maxLogFiles 5
    maxlogmembers 5
    MAXDATAFILES 100
    US7ASCII character set
    AL16UTF16 national character set
    Local extended management
    DataFile ' / u01/app/oracle/oradata/testora/system01.dbf' re-use of 400 m size
    SYSAUX datafile ' / u01/app/oracle/oradata/testora/sysaux01.dbf' re-use of 400 m size
    default tablespace users
    DataFile ' / u02/app/oracle/oradata/testora/users01.dbf' size 500 m reuse autoextend on maxsize unlimited
    default temporary tablespace tempts1
    tempfile ' / u01/app/oracle/oradata/testora/temp01.dbf' size 20 m reuse autoextend on maxsize 4g
    Undo tablespace undotbs1
    DataFile ' / u01/app/oracle/oradata/testora/undotbs01.dbf' size 200 m reuse autoextend on maxsize unlimited
    ;

    It fails in the creation of the database with the following result:

    SQL > @/home/oracle/Oracle_Scripts/testora_db_script.sql
    create the testora database
    *
    ERROR on line 1:
    ORA-01092: ORACLE instance is complete. Disconnection forced
    ORA-01501: CREATE DATABASE failed
    ORA-01505: Error adding log files
    ORA-01184: logfile group 1 already exists
    Process ID: 3486
    ID of the session: 1 serial number: 3

    This is the documentation: http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_5004.htm#i2142335
    >
    If only the DB_RECOVERY_FILE_DEST initialization parameter is specified, Oracle database then creates a log file member to this place.

  • ORA-02287: sequence number not allowed here

    < police = "Courier New" >
    Hello
    Why do I have this problem?
    Insert an order tab2 select tab2_seq.nextval, eng_cat from (select distinct job_det eng_cat) by 2.

    SQL > r
    1 * insert into tab2_seq.nextval select eng_cat select (separate eng_cat tab2
    Insert in tab2 select tab2_seq.nextval, eng_cat from (select distinct eng_cat from)
    *
    ERROR on line 1:
    ORA-02287: sequence number not allowed here

    Thank you and best regards,
    Human
    < / make >

    It's 'order of 2' which makes it fail. That makes no sense at all?
    Just remove the order by clause, then it works ;-)

  • Error ORA to rename data/log files

    Hello

    I wanted to move my data files to the new location, and now my TEMP was not moving properly.

    SQL > bootable media.
    ORACLE instance started.

    Total System Global Area 4259082240 bytes
    Bytes of size 2166488 fixed
    922747176 variable size bytes
    3321888768 of database buffers bytes
    Redo buffers 12279808 bytes
    Mounted database.
    SQL > ALTER DATABASE RENAME FILE ' / oracleGC/oem11g/oradata/oem11g/temp01.dbf' TO ' / oradata/oem11g/data/temp01.dbf';

    Database altered.

    SQL >
    SQL >
    SQL > alter database open;

    Database altered.


    SQL > SELECT name FROM v$ datafile;

    NAME
    --------------------------------------------------------------------------------
    /oradata/oem11g/data/System01.dbf
    /oradata/oem11g/data/undotbs01.dbf
    /oradata/oem11g/data/sysaux01.dbf
    /oradata/oem11g/data/users01.dbf
    /oradata/oem11g/data/Mgmt.dbf
    /oradata/oem11g/data/mgmt_ecm_depot1.dbf

    Now, I get the following errors:


    When I try to rename, I get the error below: the dbf is in both places.

    SQL > ALTER DATABASE RENAME FILE ' / oracleGC/oem11g/oradata/oem11g/temp01.dbf' TO ' / oradata/oem11g/data/temp01.dbf';
    ALTER DATABASE RENAME FILE ' / oracleGC/oem11g/oradata/oem11g/temp01.dbf' TO ' / oradata/oem11g/data/temp01.dbf'
    *
    ERROR on line 1:
    ORA-01511: Error renaming data/log files
    ORA-01516: file nonexistent log, datafile or tempfile
    "/ oracleGC/oem11g/oradata/oem11g/temp01.dbf".

    user771256 wrote:
    Yes is working now.
    Wouldn't it appears with the following?

    SELECT NAME FROM V$ DATAFILE;

    Nope,
    Given that the file that you are interested in is a temporary file (temporary tablespace) and not of datafile he show up in v$ datafile but v$ tempfile

    Concerning
    Anurag

  • ORA-08002 sequence &lt; sequencename &gt;. CURRVAL is not defined in the session

    Hi all.

    In what follows:

    DECLARE

    s_new_OJECT_TYPE CONSTANT VARCHAR2 (50): = "Application";
    s_new_OBJECT_NAME CONSTANT VARCHAR2 (50): = "Print Room";
    s_new_OBJECT_DB_TYPE CONSTANT VARCHAR2 (50): = 'Oracle ';
    s_primary_application CONSTANT VARCHAR2 (50): = 'Visual ';
    s_database_name CONSTANT VARCHAR2 (50): = "vprd2";
    s_new_ROLE_NAME CONSTANT VARCHAR2 (50): = "CM_PrintRoom";
    s_IS_DEV_ROLE_NAME CONSTANT VARCHAR2 (50): = "IS_Development";
    s_ACTION_NAME_TO_ADD_1 CONSTANT VARCHAR2 (50): = "read";
    s_ACTION_NAME_TO_ADD_2 CONSTANT VARCHAR2 (50): = "write";
    s_ACTION_NAME_TO_ADD_3 CONSTANT VARCHAR2 (50): = "Administration";
    s_ALLOW_PERMISSION CONSTANT VARCHAR2 (50): = "allow";

    BEGIN

    INSERT INTO env.security_object
    Select env.security_object_seq.nextval as SECURITY_OBJECT_KEY,
    Sot.security_object_type_key as SECURITY_OBJECT_TYPE_KEY,
    s_new_OBJECT_NAME as OBJECT_NAME
    OF sot env.security_object_type
    where sot.object_type_name = s_new_OJECT_TYPE;


    INSERT INTO approx. Role
    Select env.role_seq.nextval as role_key,
    s_new_ROLE_NAME as the NAME,
    Dec.database_key as DATABASE_KEY
    env.database_env_config dec
    WHERE dec.database_type = s_new_OBJECT_DB_TYPE
    and dec.primary_application = s_primary_application
    and lower (dec.database_name) = s_database_name;

    INSERT INTO env.security_subobject
    Select env.security_subobject_seq.nextval as SECURITY_SUBOBJECT_KEY,
    env.security_object_seq. CURRVAL as SECURITY_OBJECT_KEY,
    NULL as NAME,
    NULL as a CONDITION,
    SA.security_action_key
    of security_action its
    where lower (sa.action_name) in (s_ACTION_NAME_TO_ADD_1);

    INSERT INTO env.security_subobject
    Select env.security_subobject_seq.nextval as SECURITY_SUBOBJECT_KEY,
    env.security_object_seq. CURRVAL as SECURITY_OBJECT_KEY,
    NULL as NAME,
    NULL as a CONDITION,
    SA.security_action_key
    of security_action its
    where lower (sa.action_name) in (s_ACTION_NAME_TO_ADD_2);

    INSERT INTO env.security_subobject
    Select env.security_subobject_seq.nextval as SECURITY_SUBOBJECT_KEY,
    env.security_object_seq. CURRVAL as SECURITY_OBJECT_KEY,
    NULL as NAME,
    NULL as a CONDITION,
    SA.security_action_key
    of security_action its
    where lower (sa.action_name) in (s_ACTION_NAME_TO_ADD_3);

    INSERT INTO env.security_group
    Select env.security_group_seq.nextval as SECURITY_GROUP_KEY,
    env.security_subobject_seq. CURRVAL as SECURITY_SUBOBJECT_KEY,
    Sat.security_access_type_key,
    env.role_seq. CURRVAL as ROLE_KEY
    of env.security_access_type Sam
    where sat.access_type_name in s_ALLOW_PERMISSION;

    I see the error in the text in bold:
    Security_subobject_seq.currval ORA-08002 sequence is not yet defined in this session.

    I know I should call nextval for this sequence before I can call currval but I did above SQL...
    Am stuck on it. Any help would be appreciated.

    Thank you

    Well, Jamie. error occur for the sequence security_subobject_seq right?
    Because there above "insert" statements.. in fact security_subobject_seq.nextval do not occur.
    Reason is the condition "where" each end of insert statements, when this false condition so really "security_subobject_seq.nextval" not the case. :-) then you get an error.

  • Error: [ORA-02289: sequence does not exist.] -

    Hi guys!

    I have a problem when creating a package body.
    The bellows of the sequence is not known, and it is in the PACKAGE BODY:
    SELECT CAMPO_SEQ. CURRVAL IN pNewID FROM DUAL;

    Let me put the script and execution as:

    SQL > CREATE or REPLACE PACKAGE in the CAMPO_PACK
    2
    3 TYPE T_CURSOR IS REF CURSOR;
    4
    5 PROCEDURE InserirCampo (pNewID NUMBER, pCod_Requisicao NUMBER, pCod_Ti
    poCampo NUMBER, pCampo VARCHAR2, pDataInicial TIMESTAMP, TIMESTAMP, p pDataFinal
    Cod_Cidade NUMBER,
    6 pLogradouro VARCHAR2, VARCHAR2, VARCHAR2 pComplemento pNumero, GO pBairro
    RCHAR2, PDCP VARCHAR2, pProtocoloRelacionado VARCHAR2);
    PROCEDURE GetCamposByRequisicaoID (the pCod_Requisicao NUMBER, IO_CURSOR OUT 7
    T_CURSOR);
    8 PROCEDURE DeletarByRequisicaoID (pCod_Requisicao NUMBER);
    9
    10 END CAMPO_PACK;
    11.

    Package created.

    SQL > CREATE or REPLACE PACKAGE BODY CAMPO_PACK as
    2
    3 PROCEDURE InserirCampo (pNewID NUMBER, pCod_Requisicao NUMBER, pCod_Ti
    poCampo NUMBER, pCampo VARCHAR2, pDataInicial TIMESTAMP, TIMESTAMP, p pDataFinal
    Cod_Cidade NUMBER,
    4 pLogradouro VARCHAR2, VARCHAR2, VARCHAR2 pComplemento pNumero, GO pBairro
    RCHAR2, PDCP VARCHAR2, pProtocoloRelacionado VARCHAR2) AS
    5 BEGIN
    6 INSERT INTO Campo (Cod_Requisicao, Cod_TipoCampo, Campo, DataInicial, D
    ataFinal, cod_cidade, number, complement, Bairro, CEP, Logradouro, ProtocoloRel
    acionado)
    7 VALUES
    8 (pCod_Requisicao, pCod_TipoCampo, pCampo, pDataInicial, pDataFinal, BCP
    d_cidade, pLogradouro, pNumero, pComplemento, pBairro, PDCP, pProtocoloRelaciona
    (c);
    9
    * 10 SELECT CAMPO_SEQ. CURRVAL IN pNewID FROM DUAL; *
    END 11 InserirCampo;
    12
    PROCEDURE GetCamposByRequisicaoID (the pCod_Requisicao NUMBER, IO_CURSOR OUT 13
    T_CURSOR)
    14 EAST
    15 V_CURSOR T_CURSOR;
    BEGIN 16
    17 OPEN FOR V_CURSOR
    18 SELECT C, Cam.Cod_TipoCampo, Cam.Cod_Requisicao, Cam.Cod_Campo
    AM. Campo, Cam.DataInicial, Cam.DataFinal, Cid.Cod_Cidade, Cid.NomeCidade, Cid.Co
    d_UF, UF. Description UFDescricao,
    Cam.Logradouro 19, Cam.Numero, Cam.Complemento, Cam.Bairro, Ca
    m.CEP, Cam.ProtocoloRelacionado
    Campo Cam 20
    21 LEFT JOIN Cidade Cid ON Cid.Cod_Cidade = Cam.Cod_Cidade
    A JOIN LEFT 22 UF ON UF. Cod_UF = Cid.Cod_UF
    23 WHERE Cod_Requisicao = pCod_Requisicao;
    24 IO_CURSOR: = V_CURSOR;
    25 END GetCamposByRequisicaoID;
    26
    27 PROCEDURE DeletarByRequisicaoID (pCod_Requisicao NUMBER) HAVE
    BEGIN 28
    29 DELETE FROM campo
    30 WHERE cod_requisicao = pcod_requisicao;
    ENDS 31 DeletarByRequisicaoID;
    32
    END 33 CAMPO_PACK;
    34.

    Warning: Package body created with compilation errors.

    SQL > show err
    Erros para PACKAGE BODY CAMPO_PACK:

    LINE/COL ERROR
    -----------------------------------------------------------------
    10/5 PL/SQL: statement ignored
    10/12 PL/SQL: ORA-02289: sequence does not exist.
    SQL >

    What must I do to solve this problem?
    Thanks for the help!

    Anderson

    If there is no selected line then don't create the sequence by giving this command
    create sequences CAMPO_SEQ begins with 1 increment of 1;

    Arpit sinha
    www.OracleDBA.in

  • Log Insight is hard to archive data bucket. ?

    It is a mistake that we get:

    This alert is on your installation of Log Insight xxxxx

     
    Log Insight is having trouble archiving bucket data. There are 8 pending buckets to archive when exactly 0 are expected. This could indicate that the archiving destination is unavailable or having performance issues. If this problem is not resolved the disk on your Log Insight installation will fill up and stop accepting data. Other unexpected issues may also occur.
     
    Please ensure that your NFS server is reachable, has sufficient space, has permissions properly configured, and there is sufficient end-to-end NFS throughput between the Log Insight appliance and the NFS server.
     
    You can track the status of pending buckets to be archived via the Advanced Statistics view in the Statistics tab of the xxxx. Look for the property "pending-archivings". Ideally pending-archivings will be empty and read as follows:
     
    com.vmware.loginsight.repository.BucketManager:
      ...
      pending-archivings:
        value = {}
    And the arcive test is passing OK , any ideas  ? 

    Excellent! Can you please mark this question as answered?

Maybe you are looking for

  • How to download pictures from iCloud, but not upload to iMac

    Hi all I have an iMac, my wife and I have iPhones and our daughter has an iPodTouch. Currently, we are all transfer our photos of our individual iCloud account. I want to download pictures of each on my iMac iCloud account, but then not upload to eac

  • Satellite Pro R50-B-V12 - mousepad sends browser back

    I have a Satellite Pro R50-B-V12. I found that if I accidentally drag the top edge of the mouse pad, it is my browser back to a page, boring, especially if I'm filled out a form or making a purchase.I'm not using two fingers sliding - he does it with

  • Pavilion g6-2240sa

    I bought this laptop fror my son Christmas, it only used to watch videos and online on youtube. When the screen turned a re and the color green and then completely empty, he watched another video online. the laptop still turns on but nothing comes on

  • New to me thinkpad does nothing

    As the title says I have a thinkpad at home. It features a wiped drive that someone tried to fix it (wouldn't boot xp past loading screen). I press the power button and it lights. I press the button Lenovo and it starts to do something and then close

  • glLineWidth() does not?

    Hello I'm affected by the strange behavior while trying to restore lines under OpenGL ES 2.0 and using glLineWidth(). It works very well with a line width of 1.0, but everything more wide just translates into a filled shape with the occasional screen