Database startup trigger

IF i create a trigger that fired on startup of database. In this trigger i just kept the cursors because it is getting reloads and invalidated. cursor spec's just like below address , hash_value , cursor.
dbms_shared_pool.keep( '4A7A4A6C' , '3165782676' , 'C')
My question is IS it suitable to create a trigger for that's enviornment. Please clear my doubt.One thing DB startup and shutdown is compulsory.
Thanks

Hi,
May know the OS you are using?
In windows platform there is no need for startup & shutdown trigger.
Cheers,
Moorthy.GS

Similar Messages

  • Database startup trigger on a RAC

    I cant seem to find a definitive answer to this question in the doc anywhere, and I haven't got a RAC to test it on, but can anyone confirm that a trigger defined as 'AFTER STARTUP ON DATABASE' will fire just once immediately after database open. It will not fire for every node of the RAC - or will it? :-)
    In my understanding, in a rac, there are multiple instances, but just one database. It seems logical therefore that the above trigger will fire just once.
    However, why then would there be a System-Defined Event Attribute "ora_instance_num" available to the database startup trigger? See:
    [See Tables 9-4 and 9-5 here|http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/triggers.htm#g1722284]
    This seems to contradict my assumption.

    On my test RAC database the trigger was fired on each instance startup.
    So when the database is bounced the trigger is executed twice (once per instance for my 2 node RAC).

  • Database startup error message

    Hi Guys,
    When I startup my Database, I always see this error message printed in the trace file:
    Error in executing triggers on database startup
    *** 2005-12-09 11:12:42.817
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12663: Services required by client not available on the server
    ORA-36961: Oracle OLAP is not available.
    ORA-06512: at "SYS.OLAPIHISTORYRETENTION", line 1
    ORA-06512: at line 15
    Error in executing triggers on database startup
    *** 2005-12-09 11:12:42.869
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 4
    I have a few questions about the above message:
    1. How can I see which database startup trigger is having this error? Is there a way to determine that?
    2. Is there a way I can disable all triggers that fire on database startup? (just like we can disable triggers on a table)
    3. Any idea what ORA-36961: Oracle OLAP is not available. means?
    Thanks

    hey..thanks for the reply, I have checked to see if any triggers are enabled on startup from the USER_TRIGGERS
    SQL> select TRIGGER_NAME from DBA_TRIGGERS where TRIGGERING_EVENT='STARTUP';
    no rows selected
    SQL>
    But when I start my database, I again see this error message:
    Error in executing triggers on database startup
    *** 2005-12-12 05:32:40.778
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 4
    Is there any way I can check what trigger Oracle is complaining about?
    Also, how can I disable OLAP so that I don't see the OLAP error message?
    Thanks

  • Database startup issue

    Dear all
    when i am going to startup the database i am getting this
    below mentioned issue
    database is mounted for your information.
    Unix process pid: 5402, image: [email protected] (TNS V1-V3)
    *** SERVICE NAME:(SYS$USERS) 2010-05-23 23:04:28.988
    *** SESSION ID:(159.3) 2010-05-23 23:04:28.988
    Error in executing triggers on database startup
    *** 2010-05-23 23:04:28.988
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06521: PL/SQL: Error mapping function
    ORA-06512: at "LBACSYS.LBAC_EVENTS", line 34
    ORA-06512: at line 2
    *** 2010-05-23 23:04:48.636
    *** 2010-05-23 23:04:48.636 60679 kcrr.c
    ARCH: Archival disabled due to shutdown: 1089
    *** 2010-05-23 23:04:49.638 60679 kcrr.c
    ARCH: Archival disabled due to shutdown: 1089
    pls. let me reason for the issue.
    Tks/regs
    Sunrise~

    Error in executing triggers on database startup
    *** 2010-05-23 23:04:28.988
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06521: PL/SQL: Error mapping function
    ORA-06512: at "LBACSYS.LBAC_EVENTS", line 34
    ORA-06512: at line 2
    *** 2010-05-23 23:04:48.636
    *** 2010-05-23 23:04:48.636 60679 kcrr.c
    ARCH: Archival disabled due to shutdown: 1089
    It appears that a startup trigger has a bug.
    01089, 00000, "immediate shutdown in progress - no operations are permitted"
    // *Cause:  The SHUTDOWN IMMEDIATE command was used to shut down
    //        a running ORACLE instance, so your operations have been
    //        terminated.
    // *Action: Wait for the instance to be restarted, or contact your DBA.

  • When the Database startup and open? please please not alert log

    Hello all
    is there is a script or dinamic view which query what time the database startup and shutdown.
    please don't answer me with opent alert log, am looking for view or script only
    thank you
    regards

    You wrote you don't want to use the alert.log. But
    still this could provide all the information you want
    to have.
    If you dont want to use the alert.log because you
    need to query the information by using sql you may
    consider to access the alert.log via a external table.Even the alert log may not meet the new requirements of 'all startup and shutdown history'. In a typical shop, the alert log is periodically archived or wiped.
    The answer to the OPs question probably lies in creating a new table to store the v$instance information, and create a database startup and possibly a database shutdown trigger to fill that table.
    Or start using Grid Control which has that information tucked away in one of the internal sysman tables.

  • Help!!. Startup trigger change 8i - 9i

    Hi. I need help with the after startup on database trigger when I migrate from 8i to 9i. I performed DML operations in this trigger so I could update my database before any DML operation was made. Now I have a 9i Oracle database and I want to do the same thing but 9i does not allow me to do that.
    Does anybody knows how to make DML operations in this trigger (after startup) in Oracle 9i (if it is still posible) or another way to perform this stuff without using a startup trigger to make the fist DML operations on the database?
    Thank you very much.
    Walter.

    It does not print any error message. I've put a very little update in a table and it just does not do anything the trigger simply skips the updates (8i performs the updates) without a message. Any other way to do this?
    Thanks,
    Walter

  • Startup trigger 8i - 9i

    Hi. I need help with the after startup on database trigger when I migrate from 8i to 9i. I performed DML operations in this trigger so I could update my database before any DML operation was made. Now I have a 9i Oracle database and I want to do the same thing but 9i does not allow me to do that.
    Does anybody knows how to make DML operations in this trigger (after startup) in Oracle 9i (if it is still posible) or another way to perform this stuff without using a startup trigger to make the fist DML operations on the database?
    Thank you very much.
    Walter.

    It does not print any error message. I've put a very little update in a table and it just does not do anything the trigger simply skips the updates (8i performs the updates) without a message. Any other way to do this?
    Thanks,
    Walter

  • Start a job upon database startup

    Hi,
    I have created a job which I would like to run on database startup. What is the best way to do this. I tried using "after startup on database" but could not get it to work.
    What is the best way to make sure a job gets scheduled as soon as the database startsup.
    thanks for the help

    Hi,
    There is no documented way of using the Scheduler to do this and the "after startup on database" trigger sounds like the right thing to do. Why doesn't it work ?
    One thing which might work is creating a one-time job in the trigger to run immediately (if you use dbms_scheduler.create_job it must be in an autonomous transaction) . Or having the job exist but calling run_job from the trigger (with use_current_session=>false) - this would also have to be in an autonomous txn.
    If you are having trouble getting the trigger to work you might need to post on the general database forum.
    Hope this helps,
    Ravi.

  • Personal Oracle 8i Database startup password

    Can someone provide the database startup password for Personal Oracle 8i.I have tried passwords like "oracle","sys","manager"in both uppercase and lowercase.
    None of this works.I have read the required documentation for the same.But I haven't recd any information.
    Thanks.

    Hi,
    Normally this combination should work.
    Anyway, try this out.
    In the command prompt,
    set ORACLE_SID=<sid name>
    start server manager/svrmgrl
    connect internal.
    At this juncture , if you are getting errors, exit the svrmgr application.
    try to reset the password for internal with a new password file. (Backup the old one).
    Tr connecting.
    Regards
    Lakshmanan, K

  • Issue with database startup

    hi,
    getting below error on database startup.
    log is attached from alert log file.
    Wed Nov 16 14:24:20 2011
    ALTER DATABASE MOUNT
    Wed Nov 16 14:24:20 2011
    ORA-00202: control file: '/oradata2/ctftdb2/data/controlctftdb201.ctl'
    ORA-27086: unable to lock file - already in use
    SVR4 Error: 11: Resource temporarily unavailable
    Additional information: 8
    Additional information: 5457
    Wed Nov 16 14:24:20 2011
    ORA-205 signalled during: ALTER DATABASE MOUNT...

    user12052679 wrote:
    SID is ctftdb2
    bash-3.00$ ps -ef | grep pmon
    oracle 5992 1 0 14:24:19 ? 0:07 ora_pmon_ctftdb2
    oracle 1680 1 0 May 25 ? 193:47 ora_pmon_hddb
    oracle 5445 1 0 Jul 19 ? 287:57 ora_pmon_ctftdb2
    oracle 14334 28506 0 16:28:22 pts/3 0:00 grep pmonyour instance is already up, why trying to start again? are you not aware as it is already running?
    First shutdown the current instance which you facing errors to mount database
    export ORACLE_SID=ctftdb2
    sqlplus / as sysdba
    select name,open_mode from v$database;Might it is already either mounted or opened. post output here

  • How to automate database startup/shutdown in RHEL4

    Dear All
    I have Oracle 10gR2 database on RHEL4.
    If i want to automate database startup/shutdown with OS startup/shutdown,
    Then where i need to update about dbstart.sh & dbshut.sh
    I have already made entry in /etc/oratab as Y for database SID.
    I am using Bourn Shell.
    Thanks

    You can refer to my post in my Blog
    [Automatically StartUp and Shutdown an Oracle Database in Linux OS|http://kamranagayev.wordpress.com/2008/12/22/automatically-startup-and-shutdown-database-in-linux-os/]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Error on database startup ORA-03113: end-of-file on communication channel

    Dear All,
    I'am getting following error while database startup. 
    Database version : 11.2.0.1.0
    OS Windows 2008 R2
    ORA-03113: end-of-file on communication channel
    Process ID: 8800
    Session ID :96 Serial number : 3
    alter log contains following error
    </msg>
    <msg time='2015-04-27T15:11:41.167+05:30' org_id='oracle' comp_id='rdbms'
    msg_id='223497679' type='INCIDENT_ERROR' group='Generic Internal Error'
    level='1' host_id='DC1' host_addr='fe80::e195:ced9:de26:3531%11'
    prob_key='ORA 600 [kdtigetrow-2]' upstream_comp='' downstream_comp=''
    ecid='' errid='147059' detail_path='e:\oradb\diag\rdbms\orclfam\orclfam\trace\orclfam_ora_10016.trc'>
    <txt>Errors in file e:\oradb\diag\rdbms\orclfam\orclfam\trace\orclfam_ora_10016.trc  (incident=147059):
    ORA-00600: internal error code, arguments: [kdtigetrow-2], [73], [108], [96], [], [], [], [], [], [], [], []
    </txt>
    </msg>
    <msg time='2015-04-27T15:11:41.233+05:30' org_id='oracle' comp_id='rdbms'
    msg_id='dbgexProcessError:1176:3370026720' type='TRACE' level='16'
    host_id='DC1' host_addr='fe80::e195:ced9:de26:3531%11'>
    <txt>Incident details in: e:\oradb\diag\rdbms\orclfam\orclfam\incident\incdir_147059\orclfam_ora_10016_i147059.trc
    </txt>
    </msg>
    And the trace file shows
    Symbol file E:\ORADB\product\11.2.0\dbhome_1\BIN\orannzsbb11.SYM does not match binary.
    Symbol TimeStamp=4b62bd94, Module TimeStamp=0 are different
    *** 2015-04-27 15:11:41.230
    Incident 147059 created, dump file: e:\oradb\diag\rdbms\orclfam\orclfam\incident\incdir_147059\orclfam_ora_10016_i147059.trc
    ORA-00600: internal error code, arguments: [kdtigetrow-2], [73], [108], [96], [], [], [], [], [], [], [], []
    Thanks.
    Vivek

    vivekvm wrote:
    Dear All,
    I'am getting following error while database startup. 
    Database version : 11.2.0.1.0
    OS Windows 2008 R2
    ORA-03113: end-of-file on communication channel
    Process ID: 8800
    Session ID :96 Serial number : 3
    alter log contains following error
    </msg>
    <msg time='2015-04-27T15:11:41.167+05:30' org_id='oracle' comp_id='rdbms'
    msg_id='223497679' type='INCIDENT_ERROR' group='Generic Internal Error'
    level='1' host_id='DC1' host_addr='fe80::e195:ced9:de26:3531%11'
    prob_key='ORA 600 [kdtigetrow-2]' upstream_comp='' downstream_comp=''
    ecid='' errid='147059' detail_path='e:\oradb\diag\rdbms\orclfam\orclfam\trace\orclfam_ora_10016.trc'>
    <txt>Errors in file e:\oradb\diag\rdbms\orclfam\orclfam\trace\orclfam_ora_10016.trc  (incident=147059):
    ORA-00600: internal error code, arguments: [kdtigetrow-2], [73], [108], [96], [], [], [], [], [], [], [], []
    </txt>
    </msg>
    <msg time='2015-04-27T15:11:41.233+05:30' org_id='oracle' comp_id='rdbms'
    msg_id='dbgexProcessError:1176:3370026720' type='TRACE' level='16'
    host_id='DC1' host_addr='fe80::e195:ced9:de26:3531%11'>
    <txt>Incident details in: e:\oradb\diag\rdbms\orclfam\orclfam\incident\incdir_147059\orclfam_ora_10016_i147059.trc
    </txt>
    </msg>
    And the trace file shows
    Symbol file E:\ORADB\product\11.2.0\dbhome_1\BIN\orannzsbb11.SYM does not match binary.
    Symbol TimeStamp=4b62bd94, Module TimeStamp=0 are different
    *** 2015-04-27 15:11:41.230
    Incident 147059 created, dump file: e:\oradb\diag\rdbms\orclfam\orclfam\incident\incdir_147059\orclfam_ora_10016_i147059.trc
    ORA-00600: internal error code, arguments: [kdtigetrow-2], [73], [108], [96], [], [], [], [], [], [], [], []
    Thanks.
    Vivek
    Seems these lines are telling the tale:
    Symbol file E:\ORADB\product\11.2.0\dbhome_1\BIN\orannzsbb11.SYM does not match binary.
    Symbol TimeStamp=4b62bd94, Module TimeStamp=0 are different
    I don't understand why the symbol table doesn't match the binary unless someone 'stepped' on one of them (meaning overwrote them).  Have you checked %ORACLE_HOME%\bin for file times?
    David Fitzjarrell

  • How to make rollback segments online on database startup?

    I create some rollback segments in users tablespace, but how can I auto make these rollback segment online on database startup?
    thanks!!

    Add the name of the rollback segments to rollback_segments parameter in the init.ora file.
    edwin

  • Transperant Data Encryption issue with database startup

    Hi, I am trying to implemete TDE in oracle databse and have create encryption successfully too.
    All the steps went on fine and encryption is working successfully.
    now, I have an issue everytime when database shutdown and startup.
    for which I have created a procedure to open the wallet and a trigger to open the wallet on DB startup.
    here is the example : tde_proc.sql
    1 create or replace procedure open_wallet
    2 as
    3 wallet_open exception;
    4 pragma exception_init(wallet_open,-28354);
    5 v_stmt varchar2(100);
    6 v_password varchar2(20);
    7 begin
    8 v_password:='abcdef1' ;
    9 -- edit the following line to store your secret wallet password
    10 v_stmt :='ALTER SYSTEM SET ENCRYPTION WALLET OPEN IDENTIFIED BY "'||v_password||'"';
    11 execute immediate v_stmt ;
    12 exception
    13 when wallet_open then
    14 null;
    15 end;
    16 /
    @wrap iname=tde_proc.sql
    Processing tde_proc.sql to tde_proc.plb
    SQL> @tde_proc.plb
    Procedure created.
    TRIGGER :
    create or replace trigger open_tde_wallet
    after startup on database
    begin
    -- call wrapped pl/sql pocedure
    open_wallet;
    end open_tde_wallet;
    SQL> @open_wal.trg
    Trigger created.
    when I startup the database, alert log is showing the below error.
    Errors in file /opt/oracle10/admin/bmp10/udump/bmp10_ora_18396.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28353: failed to open wallet
    ORA-06512: at "SYS.OPEN_WALLET", line 11
    ORA-06512: at line 3
    Thu Jul 23 17:36:41 2009
    Completed: ALTER DATABASE OPEN
    Please give me some solution to resolve the issue.

    Hi..
    Thanks for your reply.
    1. yes variable v_password and wallet passwords are same. I had double checked after reading your reply. variable pwd
    and encryption wallet passwords are same.
    2. the entryof ENCRYPTION_WALLET_LOCATION in the SQLNET.ORA is also added.
    here is the sqlnet.ora
    ENCRYPTION_WALLET_LOCATION =
    (SOURCE =
    (METHOD = FILE)
    (METHOD_DATA =
    (DIRECTORY = /opt/oracle10/admin/tstbmp10/encrypt)
    Thanks,
    Krishna

  • Database startup after reboot of RAC server

    Hello,
    My config : 2 nodes w2k3 with 15 dbs . Oracle 10.2.0.3
    I started to scheduled my rac server reboot so i follow the oracle doc to shutdown properly all db,asm,service,listener,etc...
    Today one the server reboot, but some instance doesn't start (only five , and the last five in alphabetic order)
    In the log :
    db log : nothing just the shutdown
    crs_log : the start of the 10 db but nothing for the last five !!
    just a trace on one listener service :
    StartResource error for ora.sqyora01.LISTENER_1522_SQYORA01.lsnr error code = 1
    2010-08-11 02:56:08.000: [  CRSRES][3008]32Start of `ora.sqyora01.LISTENER_1522_SQYORA01.lsnr` on member `sqyora01` failed.
    2010-08-11 02:56:08.125: [  CRSRES][3008]32Skip online resource: ora.sqyora01.LISTENER_SQYORA01.lsnr
    On windows services : the OracleServiceSID service isn't started.
    Any help is welcome to understand this problem.
    Thanks.

    user4511076 wrote:
    IMO : (i am not a great oracle dba, because i have not enough time to spend with, and my collegue need really simple think to do, like startup/shutdown a database, no more investigation)Why startup/shutdown a database? I have databases that work 24x7 and uptimes of over a year. The record so far, has been over 24 months uptime (1st downtime were caused by a powerfailure to the rack cabinet). And for a database instance that runs a number of processes and deals with 100's to 1000's of inserts per second.
    it's easier to view that an oracle process take more cpu and so investigate in that database what's appens. Rather than search in my v$sql table to find witch schema doing wrong thinksNot sure what you are trying to say here. Single or multiple database instances do not change how a session looks like, or how SQLs are executed.. and thus not how you troubleshoot problems. Nor does it change resource requirements, or how you address these. But multiple instances do impact resource availability and requires one to split resources amongst instances - the end result of this is less flexibility.
    It's easier to affect cpu ressource to a process, rather than configuring it in oraclePlease explain.
    It's easier to stop a database rather than "put offline a schema"This is a "silly" statement to make IMO. Why do you want to offline a schema? Availability of applications and data are a critical feature in today's information system landscape. So why argue the complete opposite and say it is now more complex to make something less available?
    By the same token, why do you want to offline a database? A down database is even less useful than a downed server - at least you can use the downed server as a doorstop.. ;-)
    And if a database crash it only affect one application.Yeah.. and these happens when? Every few minutes? Every hour? Once a day?
    This is not a valid argument. Oracle instances very seldom crashes just for the heck of it. Most often it is due to incorrect o/s configuration, problematic hardware, uncertified components, old drivers, etc. Or plain old application abuse of Oracle.
    There is the theorical approach and practical one : I'm not alone is that case :
    http://oracledoug.com/serendipity/index.php?/archives/1339-The-Reality-Gap-3-A-Single-Instance-per-Server.html
    http://www.dba-oracle.com/art_dbazine_server_consolidation.htm
    I have never done RDBMS as a theoretical thing. The most dynamic table (ito SQLs against it) I have, grows by more than 450 million rows per day. This is as real world as real world gets. And that is what shapes my experience and opinion. And Burleson and I have never seen eye to eye on a number of subjects - so quoting his views on consolidation does little to persuade me to change my opinion.
    have you any ideas where can i found an error message that explain why my database doesn't start ? (like not enough ressource ;-) )Troubleshooting a problem starts with a very basic principle - isolation. Isolate the layer or moving part where the problem occurs. As the other instances are running, it means that the CRS software layer is up and running, that the storage layer is up and running and so on. So the problem should be with the instance that for some reason refuses to start? Confirm this by using sqlplus to start a down instance and looking at what its alert log file says. It should have some kind of pointer to what dependency that has not been met.

Maybe you are looking for

  • New Mac keeps crashing. Computer just turns off and restarts. Can happen in 10 minutes or a few hour

    Computer keeps crashing. Took it back to authorized seller and they changed the ram, but continues to crash. Will be in the middle of any program and screen will black out,go back to restart. Very confusing as it's top of the line iMac. This all star

  • Servlet's onMessage method in SOAP

    Hi, When I call a servlet which has an onMessage(SOAPMessage m) method from a client program, I get the 405 Error. The call returns to the client with an Exception saying that the post method is not implemented by the servlet. What should be done ? I

  • Unable to open SAP Screen Painter on the current desktop.

    Hi, Whenever I try to open Screen painter through SAP GUI I am thrown with an error message "EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'". This error has been occurring since I have changed my workstation. When I use my SAP login

  • EXPORT full database only METADATA

    how to export only metadata of database with out user entered values. i want the database with same metadata is it possible to clone only target database metadata.

  • Does CS4 render styles any better than CS3?

    All layouts I'm now doing rely on CSS layers. That's what the Layout Police now require. But DW CS3 doesn't do a good job of rendering the complex CSS in Design view (they look fine in the browsers), so I've gone back to the future, coding my pages i