Stop and start database for cold backup

Hi,
Database :Oracle 10g R1
OS : Red hat 3
I have a RAC database with 2 nodes.
I build this script to make a cold backup of the database. (I will put it in the cron tab).
My question is the SRVCTL will work in this scripts??
# ***** COLDBACKUP ORACLE DATABASE ON LINUX *****
DIRECTORY=/u02/backup/script/; export DIRECTORY
cd ${DIRECTORY}
# ***** SHUTDOWN THE DATABASE *******
export oracle_sid=RCDB
srvctl stop database -d RCDB
# *****cold backup for "RCDB" database on 13-FEB-07 ... *****
# ***** COPY FILES *****
# Redo logs
cp /u02/oradata/RCDB/redo01.log ${DIRECTORY}
cp /u02/oradata/RCDB/redo07.log ${DIRECTORY}
cp /u02/oradata/RCDB/redo03.log ${DIRECTORY}
cp /u02/oradata/RCDB/redo08.log ${DIRECTORY}
# Datafiles
#*********START UP DATABASE AND SERVICES********
srvctl start database -d RCDB
exit
Message was edited by:
ASkika
Message was edited by:
ASkika

I need to put a quick policy backup ... and cold
backup it's what I use and it works.And reduces the availability of your cluster.
The problem about RMAN is that we never use it. I
have to learn about it to make scripts to test....
and this will tack me 2 or 3 days...I'd assume that installing RAC didn't go overnight, so why underfund the crucial part of any database system, the backup?
There's even a step by step guide for backup on the Getting Started: DBAs page.
Samples (and changes) on the latest version of RMAN can be found for example in RMAN Enhancements.
Or take a look at this Oracle Magazine article:Faster Backup, Faster Recovery
Backup and Recovery Basics in the user documentation may also be a good starting point.
C.

Similar Messages

  • Stop and start databases

    I need to shutdown all my databases (ifs_Data and OEMREP), because computer people are going to run periodically a process to backup them. But I cannot find how to stop and start my oracle databases by commands (I need to create a bat file). I am using Win2000, Oracle 9 and iFS 9.0.1
    Thanks for the suggestions,

    This can be a procedure to shutdown a database:
    SET ORACLE_SID=<database_sid>
    sqlplus /nolog
    conn / as sysdba
    shutdown <option>;
    exit
    <option> = Abort ( Not recommendable ), Immediate, transactional, normal.
    Joel Pérez

  • Stopping and starting database in 10G OEM

    Hello, has anyone run into an issue trying to stop and then start a database within the OEM console in 10G? We are able to stop and start the db with sql and windows services. We can stop the db in OEM but can't start it.

    When you come to the startup/shutdown:confirmation page before actually starting up the db, does the Operation parameter say "startup database in open mode" or is it "... in mount mode"?

  • How to stop and start a for loop

    I've got code and a for loop running in a while loop.  What I need to do is simply pause the operation of the for loop until an requirement is met, and but maintain its iteration position throughout each pause interval (not necessarily timed, just paused until the next requirement is met).  I've tried wiring a boolean to the "continue if true" terminal of the for loop, but the iteration count restarts to 0 when the loop is started again.  Is there a way to stop the for loop, and continue at the particular iteration it is at?
    Solved!
    Go to Solution.

    Breakpoints, whether normal or conditional, are just meant for debugging of your code.  I had the sense from your question that the pausing you want to do is a part of normal operation of your code.  I would NOT recommend using a breakpoint for that situation.  It would bring up the block diagram showing the breakpoint when it occurs.  A user besides the programmer would not know what to do in that case.
     Yes, both the inner and outer loops would have shift registers.
    Putting a case structure with a small while loop inside the "Pausing Case" is doable.  It just depends on what you are doing or waiting for while the program operation is "paused".

  • My lap top is extremly slow. It studders. It kind of sounds like there is a fan inside and it constantly stopping and starting. And, it takes a really long time for it too start up. Whats wrong with it?

    My lap top is extremly slow. It studders. It kind of sounds like there is a fan inside and it constantly stopping and starting. And, it takes a really long time for it too start up. Whats wrong with it?

    Do you have current backups?
    Those symptoms could indicate a failing Hard drive. If it dies, all your documents go with it unless you have Backups.
    I have had very good luck with physical and battery problem diagnosis at the Genius Bar. Those guys put their hands (and their ears) to these machines, all day every day, and they know immediately what all those sounds mean.
    Your appointment for an evaluation is FREE, in warranty or out.

  • How to stop and start RAC Database

    Hi,
    Can anybody tell me How to stop and start RAC Database.
    Pls give me the exact procedure for OS - IBM Aix 5.3.
    Rajkumar

    Burleson,
    It so appears, as from the numerous times you have been published incorrect, untested information, and non-working scripts, you are not an Oracle guru,
    but only a self-proclaimed one.
    It also appears nothing on your 'CV' can be easily verified.
    You state you are an 'adjunct professor emeritus', however anyone who was kicked out after a few months can call himself a 'professor emeritus'.
    Looking at the enormous amount insults and slander you have posted directed to me and others on this forum, showing a highly unprofessional attitude toward your peers,violating this forums rules of conduct, don't you think you deserved to be banned completely?
    After all, you are always promoting your own publications here, which is also in violation of the rules for this forum.
    What makes you think that "Sybrand" is a man's name? How many male Sybrand's do you know? I don't know any, not one.
    That's your problem. I'm as much as male, as you are a fat, ugly, self-proclaimed Oracle-guru, which you are clearly not, you are only a fraud, and this glares from all of your publications.,
    Sybrand Bakker
    Senior Oracle DBA

  • Recover database from cold backup and add ol archivelogs....

    Hello!
    Scenarion : I have create in 1 january cold backup of my database. I have from 1 to 4 January all archive logs generated by my database. My database gone in 4 January.
    Solution question : How can i restore database using cold backup a than add info from archivelogs to recovered database to do database consist from disaster day.
    Regards... Marcin

    1. Kill current instance with SHUTDOWN ABORT.
    2. Copy all control files and data files from your cold backup to original destination.
    3. Make sure all archived redo logs from 01-JAN to 04-JAN are available in the database archive destination (LOG_ARCHIVE_DEST or LOG_ARCHIVE_DEST_x).
    4. Run as SYSDBA:
    startup mount
    recover database using backup controlfile until cancel;When prompted for something like
    ORA-00279: change 864868 generated at 01/14/2010 09:30:10 needed for thread 1
    ORA-00289: suggestion :
    C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2010_01_15\O1_MF_1_22_%
    U_.ARC
    ORA-00280: change 864868 for thread 1 is in sequence #22enter:
    AUTOWhen you get something like:
    ORA-00308: cannot open archived log
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2010_01_15\O1_MF_1_29_
    %U_.ARC'
    ORA-27041: unable to open file
    OSD-04002: ouverture impossible du fichier
    O/S-Error: (OS 2) Le fichier spécifié est introuvable.run
    alter database open resetlogs;

  • How to stop and start MDBs to listen for JMS messages

    Hello! This might be more of an architecture question rather than a technical questing, but I post it here, in the lack of a better place...
    For several years I have been using Webster and Webster MQ to send messages back and forth to clients. The architecture for the middleware platform has been designed around the functionality of ListenerPorts. Listenerports is a Webster functionality that let you "stop" and start to listen to JMS messages for a given MDB either by admin console, or by JMX.
    The arhitecture we used was something like this :
    1.Client sends a persistent message to a queue. (order)
    2. An MDB pics up the order message, calls a SessionBean that "fronts" the IIOP back end system.
    This is quite "out of the box" architecture, but we used the Listenerports to solve a stability problem for our back end system.
    The backEnd system was quite unstable, so the EJB threw an exception (typically because of timeout or connection refused) back to the MDB.
    The Listenerport was "defined" to handle 3 errors before stopping, so the MDB resent the message twice before the listenerport automatically stopped. The nice thing about this feature was that the client could continue to send orders, and was not bothered when the back end system was down.
    When the backEnd system was up and running, we could start the listenerport and it was all back to normal state. We even had a start script that checked the state of the listenerport every 30 minute, and started it automatically if it was stopped, making the admin task of starting the MDB unnecessary..
    Now.. Why am I telling this story..
    I would like to know how this could be done using "clean" J2EE technologies..That is..Not using any technology that is not portable..
    I`m playing with glassfish at home, and it struck me that there is nothing in the J2EE spec that defines the functionality described above ? Am i missing something ?
    I Do not want to stop My application because the back end system is down? That is the only way (i know of) that i can "stop" to listen for messages..
    I can put all the messages on an error queue when the backbend system is down, but that would lead to more code just to handle the error messages. Maybe the easiest way to solve this is to "move" (programmatically) all messages from the error queue over to the "standard" queue every XX minute, but somehow that sounds "wrong"
    Can anyone give me some advice to how this problem situation should be solved ? I`m interested in the solution both from an architectural perspective and from a more technical perspective..
    Best regards
    Hans-Jacob Melby

    Breakpoints, whether normal or conditional, are just meant for debugging of your code.  I had the sense from your question that the pausing you want to do is a part of normal operation of your code.  I would NOT recommend using a breakpoint for that situation.  It would bring up the block diagram showing the breakpoint when it occurs.  A user besides the programmer would not know what to do in that case.
     Yes, both the inner and outer loops would have shift registers.
    Putting a case structure with a small while loop inside the "Pausing Case" is doable.  It just depends on what you are doing or waiting for while the program operation is "paused".

  • Why does Image Capture stop recognizing Epson scanner after scanning several images? I have to stop and start the scanner in order for Image Capture to recognize it again.

    Why does Image Capture stop recognizing Epson scanner after scanning several images? I have to stop and start the scanner in order for Image Capture to recognize it again.

    Karen ...
    Might be corrupted preferences (.plist)
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Preferences/com.apple.image_Capture.plist
    Click Go then move the com.apple.image_Capture.plist file to the Trash.
    Restart your Mac and your scanner and try scanning an image.

  • HT6058 I have updated my I pad dut I'm still having problems my iPad seems to freeze and when I go to put in my pin it take a few seconds before the numbers go in and my games stop and start and stop and start for a bit before they run properly

    I have updated my I pad dut I'm still having problems my iPad seems to freeze and when I go to put in my pin it take a few seconds before the numbers go in and my games stop and start and stop and start for a bit before they run properly

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
     Cheers, Tom

  • Tools and Script for stopping and starting SAP instances in the landscape

    Hi All,
    All our SAP system are on Windows 2003 and very few on Windows 2000.
    Is there any possiblity for having a script which will stop and start SAP on all the instances in the Landscape from a central system?
    Lets say we have some 200 SAP instances and we need to down all the instances for Windows patching.
    In this case, we need to manually take remote desktop to stop and start all the instances one by one.
    Also, do we have any 3rd party automated tools for this purpose?
    Regards,
    Siva.

    Hi Siva,
    You can configure ACC for your system landscape.
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/83/43cd574af1489aadd4d71b2f47b77d/content.htm
    Thanks
    Atul

  • Stop and Start Services

    Hi All,
    We are stopping and starting the services for daily backup. Is it advisable to stop and start services.
    Because client wants to stop the services before taking the backup anf start the services after backup.
    In this scenario, what services do we need to stop for backup process.
    Regards,
    Kumar

    Hi Saichand,
    Thanks for the response.
    Do u have any idea on the below:
    Our scenario is the below:
    We have a daily back of BI folders and Loading data from ERP to 10g database.
    We logged in with remote desktop user A from ABC system to BI system and We created a batch file to start and stop all the BI the services and scheduled this batch file using windows schedule tasks. These batch files will stop the BI services and after 30 minutes another batch file will load data into the database, after 2 hours start services batch file will start the BI services.
    When we open the BI Dashboards in the morning, all the dashboards and reports are working fine. But when I login to BI system, OC4J windows is not visible and dashboards are not coming and when we check the logs, LOGs says OC4J is running.
    Please suggest us the solution.
    Regards,
    Kumar
    Regards,
    Kumar
    Edited by: user597882 on Aug 26, 2010 3:35 AM

  • Log on to remote server and start database -error while installing CI in HA

    Hello All,
    We are installing ECC 6.0 with High Availability using HP-UX. We have completed installation in ASCS and Database Instance. Now when were trying to install in Central Instance, we encountered an error at Start Instance which informed us to Log on to remote server and start database. However the database is already running in DB node.  Please find the log below.
    TRACE      2011-06-10 16:31:45.825 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25742
    INFO       2011-06-10 16:31:45.835
               CJSlibModule::writeInfo_impl()
    Output of /usr/sap/PE2/SYS/exe/run/startsap all DVEBMGS01 DBMCI001 is written to the logfile start_PE2_DVEBMGS01.log.
    WARNING    2011-06-10 16:31:46.345
               CJSlibModule::writeWarning_impl()
    Execution of the command "/usr/sap/PE2/SYS/exe/run/startsap all DVEBMGS01 DBMCI001" finished with return code 6. Output:
    Database PE2 must be started on remote server
    Log on to remote server and start database
    WARNING[E] 2011-06-10 16:31:46.355
               CJSlibModule::writeError_impl()
    CJS-20022  Could not start instance 'DVEBMGS01' of SAP system PE2.
    TRACE      2011-06-10 16:31:46.355 [iaxxejsbas.hpp:408]
               handleException<ESAPinstJSError>()
    Converting exception into JS Exception EJSException.
    TRACE      2011-06-10 16:31:46.355
    Function setMessageIdOfExceptionMessage: ind-rel.ind-os.ind-db.webas.startInstanceFailed
    WARNING[E] 2011-06-10 16:31:46.355
               CJSlibModule::writeError_impl()
    CJS-20022  Could not start instance 'DVEBMGS01' of SAP system PE2.
    TRACE      2011-06-10 16:31:46.355 [iaxxejsbas.hpp:483]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    TRACE      2011-06-10 16:31:46.405 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25793
    ERROR      2011-06-10 16:31:46.525 [sixxcstepexecute.cpp:950]
    FCO-00011  The step start with step key |NW_ABAP_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|10|0|NW_CI_Instance_Start|ind|ind|ind|ind|2|0|start was executed with status ERROR .
    TRACE      2011-06-10 16:31:46.555 [iaxxgenimp.cpp:752]
                CGuiEngineImp::showMessageBox
    <html> <head> </head> <body> <p> An error occurred while processing option SAP ERP 6.0 EHP4 Ready - Support Release 1 > SAP Application Server ABAP > Oracle > High-Availability System > Central Instance . You can now: </p> <ul> <li> Choose <i>Retry</i> to repeat the current step. </li> <li> Choose <i>View Log</i> to get more information about the error. </li> <li> Stop the option and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/ERPEhP4/AS-ABAP/ORA/HA/CI. </p> </body></html>
    TRACE      2011-06-10 16:31:46.555 [iaxxgenimp.cpp:1255]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Waiting for an answer from GUI
    Kindly let us know how to rectify the error and prroceed further with the instalaltion.
    Thanks
    Rishi

    Dear Guys,
    we didnt change the date and time but i m very sure it is same trans.log file.
    for your kind information please note SID and Nodes details
    Sid (PE2)
    DB Node : DBMDB001
    CI Node :   DBMCI001
    also i am attaching starting part of the file.
    4 ETW000 R3trans version 6.14 (release 701 - 26.01.09 - 12:46:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 07.11.2010 - 03:44:06
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Sun Nov  7 03:44:06 2010                             295  0.000295
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    22  0.000317
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                            116  0.000433
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/PC1/SYS/exe/run/dboraslib.so' ...
    4 ETW000                                                                              64  0.000497
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/PC1/SYS/exe/run/dboraslib.so), hdl 0
    4 ETW000                                                                           32161  0.032658
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/PC1/SYS/exe/run/dboraslib.so' loaded
    4 ETW000                                                                              39  0.032697
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library
    /usr/sap/PC1/SYS/exe/run/dboraslib.so
    4 ETW000                                                                             111  0.032808
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/PC1/SYS/exe/run/dboraslib.so' is "700.08",
    patchlevel (0.25)
    4 ETW000                                                                             265  0.033073
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library
    /usr/sap/PC1/SYS/exe/run/dboraslib.so
    4 ETW000                                                                              41  0.033114
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library
    /usr/sap/PC1/SYS/exe/run/dboraslib.so
    4 ETW000                                                                              82  0.033196
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              52  0.033248
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES,
    reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              41  0.033289
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         84  0.033373
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              31  0.033404
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES,
    reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              37  0.033441
    4 ETW000  [dev trc     ,00000]  Oracle Client Version: '10.2.0.4.0'                  601  0.034042
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         25  0.034067
    4 ETW000  [dev trc     ,00000]  Client character set UTF16 -> UTF8                 35674  0.069741
    4 ETW000  [dev trc     ,00000]  Client NLS setting (OCINlsGetInfo): 'AMERICAN_AMERICA.UTF8'
    4 ETW000                                                                              57  0.069798
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPSR3's password           55  0.069853
    4 ETW000  [dev trc     ,00000]  Connecting as /@PC1 on connection 0 (nls_hdl 0) ... (dbsl 700
    151208)
    4 ETW000                                                                              34  0.069887
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C     
    EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              52  0.069939
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      0
    0x6000000001052910 0x600000000105a3c0 0x600000000106ab38
    4 ETW000                                                                              58  0.069997
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       40  0.070037
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      27  0.070064
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server PC1
    (con_hdl=0,svchp=0x600000000106aa68,srvhp=0x600000000106de78)
    4 ETW000                                                                              63  0.070127
    4 ETW000  [dev trc     ,00000]  Assigning server context 0x600000000106de78 to service context
    0x600000000106aa68
    4 ETW000                                                                           60612  0.130739
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        97  0.130836
    4 ETW000  [dev trc     ,00000]  Starting user session: OCISessionBegin(con_hdl=0,
    usr='/',svchp=0x600000000106aa68, srvhp=0x600000000106de78, usrhp=0x60000000010fc940)
    4 ETW000                                                                              64  0.130900
    4 ETW000  [dev trc     ,00000]  Assigning user session 0x60000000010fc940 to service context
    0x600000000106aa68
    4 ETW000                                                                            9302  0.140202
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=53, stmth_p=0x6000000001077608)
    4 ETW000                                                                             198  0.140400
    4 ETW000  [dev trc     ,00000]         BEGIN DBMS_APPLICATION_INFO.SET_MODULE(:A0,:A1); END;        
    4 ETW000                                                                              38  0.140438
    4 ETW000  [dev trc     ,00000]  CbApplInfoGet() failed! Ignore, but uninstall callback to avoid more
    erroneous calls
    4 ETW000                                                                             291  0.140729
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=54, stmth_p=0x6000000001078660)
    4 ETW000                                                                              33  0.140762
    4 ETW000  [dev trc     ,00000]         BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO(:A0); END;       
    4 ETW000                                                                              35  0.140797
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
    4 ETW000                                                                             937  0.141734
    4 ETW000  [dev trc     ,00000]         SELECT SID FROM V$MYSTAT WHERE ROWNUM<2                                                                               
    4 ETW000                                                                              36  0.141770
    4 ETW000  [dev trc     ,00000]  Connected to session 297.                            639  0.142409
    4 ETW000  [dev trc     ,00000]  Now '/@PC1' is connected: con_hdl=0, nls_hdl=0, session_id=297.
    4 ETW000                                                                              38  0.142447
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
    4 ETW000                                                                              37  0.142484
    4 ETW000  [dev trc     ,00000]         ALTER SESSION SET NLS_SORT = BINARY                                                                               
    4 ETW000                                                                              36  0.142520
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
    4 ETW000                                                                             327  0.142847
    4 ETW000  [dev trc     ,00000]         SELECT USERID, PASSWD FROM SAPUSER WHERE USERID IN (:A0, :A1)
    4 ETW000                                                                              36  0.142883
    4 ETW000  [dev trc     ,00000]  Got SAPSR3's password from OPS$-user                 728  0.143611
    4 ETW000  [dev trc     ,00000]  Disconnecting from connection 0 ...                   38  0.143649
    4 ETW000  [dev trc     ,00000]  Rolling back transaction ...                          31  0.143680
    4 ETW000  [dev trc     ,00000]  Closing user session
    (con_hdl=0,svchp=0x600000000106aa68,usrhp=0x60000000010fc940)
    4 ETW000                                                                             210  0.143890
    4 ETW000  [dev trc     ,00000]  Now I'm disconnected from ORACLE                     721  0.144611
    4 ETW000  [dev trc     ,00000]  Connecting as SAPSR3/<pwd>@PC1 on connection 0 (nls_hdl 0) ... (dbsl
    700 151208)
    4 ETW000                                                                              40  0.144651
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C     
    EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              37  0.144688
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      0
    0x6000000001052910 0x600000000105a3c0 0x600000000106ab38
    4 ETW000                                                                              37  0.144725
    4 ETW000  [dev trc     ,00000]  Assigning username to user session: con_hdl=0,
    usrhp=0x60000000010fc940
    4 ETW000                                                                              35  0.144760
    4 ETW000  [dev trc     ,00000]  Assigning password to user session: con_hdl=0,
    usrhp=0x60000000010fc940
    4 ETW000                                                                              40  0.144800
    4 ETW000  [dev trc     ,00000]  Starting user session: OCISessionBegin(con_hdl=0, usr=SAPSR3/<pwd>,
    svchp=0x600000000106aa68, srvhp=0x600000000106de78, usrhp=0x60000000010fc940)
    4 ETW000                                                                             337  0.145137
    4 ETW000  [dev trc     ,00000]  Assigning user session 0x60000000010fc940 to service context
    0x600000000106aa68
    4 ETW000                                                                            4085  0.149222
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=54, stmth_p=0x6000000001077608)
    4 ETW000                                                                              63  0.149285
    4 ETW000  [dev trc     ,00000]         BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO(:A0); END;       
    4 ETW000                                                                              37  0.149322
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                             585  0.149907
    4 ETW000  [dev trc     ,00000]         SELECT SID FROM V$MYSTAT WHERE ROWNUM<2                                                                               
    4 ETW000                                                                              36  0.149943
    4 ETW000  [dev trc     ,00000]  Connected to session 297.                            350  0.150293
    4 ETW000  [dev trc     ,00000]  Now 'SAPSR3/<pwd>@PC1' is connected: con_hdl=0, nls_hdl=0,
    session_id=297.
    4 ETW000                                                                              38  0.150331
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                              38  0.150369
    4 ETW000  [dev trc     ,00000]         ALTER SESSION SET NLS_SORT = BINARY                                                                               
    4 ETW000                                                                              34  0.150403
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                             294  0.150697
    4 ETW000  [dev trc     ,00000]         SELECT VALUE FROM V$NLS_PARAMETERS WHERE PARAMETER IN
    ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET') ORDER BY PARAM
    4 ETW000                                                                              66  0.150763
    4 ETW000  [dev trc     ,00000]         ETER                                                                               
    4 ETW000                                                                              34  0.150797
    4 ETW000  [dev trc     ,00000]  Database NLS settings: AMERICAN_AMERICA.UTF8         329  0.151126
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                             856  0.151982
    4 ETW000  [dev trc     ,00000]         SELECT UPPER(INSTANCE_NAME),HOST_NAME,VERSION,TO_CHAR
    (STARTUP_TIME,'MON DD, YYYY, HH24:MI:SS') FROM V$INSTANCE           
    4 ETW000                                                                              36  0.152018
    4 ETW000  [dev trc     ,00000]  DB instance PC1 is running on scmdb001 with ORACLE version
    10.2.0.4.0 since NOV 07, 2010, 03:23:10
    4 ETW000                                                                             349  0.152367
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                              38  0.152405
    4 ETW000  [dev trc     ,00000]         SELECT SUBSTR(NAME,1,3), TO_CHAR(CREATED,'YYYYMMDDHHMMSS')
    FROM V$DATABASE

  • SSRS Report queries begin running slowly, have to stop and start report server to restore performance

    We have had a production issue crop up twice now where reports begin running slowly seemingly at random.  
    When this happens we can see from running SQL Profiler that the report queries are taking an extremely long time to execute.  The same queries when run directly in management studio run quickly.  
    Initially I suspected parameter sniffing, and tried using OPTION (RECOMPILE) in the reports, as well as clearing out the particular query from the plan cache and running the SQL in SSMS to try and get a better plan etc but no amount of jiggery pokery by
    me could get the queries to run any faster.
    The really weird thing - is that stopping and starting the report server via the reporting services configuration manager instantly cures the problem.  
    I'd really love to know - why this might be?  Is it something to do with the report server closing and re-opening its connections to the database? That's the only sort of thing I can think of...any ideas? Anyone? Any suggestions would be much appreciated.
    LucasF

    Hi LucasF,
    In your scenario, usually we can monitor the execution log in Report Database. If you run below query, you can get the results how long the report takes to render (TimeRendering), how long to process the report(TimeProcessing) and how long to retrieve data
    from Database(TimeData). You can check the starttime and endtime to know the total time for executing a report.
    SELECT TOP1000 *FROM[ReportServer].[dbo].[ExecutionLog2]
    More details information, please reference to similar thread below:
    Steps for troubleshooting a slow SSRS 2014 server
    Troubleshooting Reports: Report Performance
    In SQL Server Reporting Services, a job will be created by SQL Server Agent if any of the following processes is underway:
    query execution on a remote or local database server
    report processing
    report rendering
    To cancel a job that is running on the report server, we can cancel the job directly or reduce the report execution time-out value in the SQL Server Management Studio and then will stop query execution. Please refer to the steps below:
    Open SQL Server Management Studio, and connect to "Reporting Services".
    Under the Report Server node, right-click on the "Jobs" folder and select "Refresh". Then, right-click on "Jobs" again and click "Cancel All Jobs".
    Right-click on the Report Server node and open the "Server Properties" dialog.
    Click the "Execution" option, and set the "Limit report execution to the following number of seconds:" to a much smaller number. After this issue is resolved, this configuration should revert to the previous state.  
    Reference:
    Managing a Running Process
    Setting Time-out Values for Report and Shared Dataset Processing
    In addition, we can also use the KILL Transact-SQL statement to terminate a normal connection by terminating the transactions that are associated with the specified session ID. For the details information, you can refer to:
    KILL (Transact-SQL)
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Build standby database using cold backup on a different file system & host

    Hi gurus,
    The database version is 11.2.0.3. OS is HP UX Itanium 11.31
    I am building a standby database using cold backup of primary. The primary mount points are (/p003/oracle, /p004/oracle) on HOST1 and the standby file system on HOST2 are (/s003/oracle,/s004/oracle). I am not using Data Guard to apply logs as we have a script that mounts the log location periodically to standby server and apply the logs to make it current. I am using cold backup as the database is small like 200G and can be taken down. Could someone help me with the steps to build standby using cold backup for a different file location in standby ?? My concern is I can copy the data files from /p003 to /s003. How will I build the controlfile ?
    If it was same File system on both HOST 1 and HOST2 I can copy the cold backup to the standby server, build a standby control file on primary and copy and replace the standby control file and everything was set.
    Thanks
    Cherrish Vaidiyan

    Hello;
    I have a note on this using a cold copy of the current files instead of a copy backup :
    http://www.visi.com/~mseberg/data_guard_on_oracle_10_step_by_step.html
    I will post SCP SQL in a moment.
    Best Regards
    mseberg
    set heading off
    set feedback off
    set pagesize 100
    set linesize 400
    select 'scp '||a.name ||' server_name:' || a.name as newname from v$datafile a;
    select 'scp '||a.name ||' server_name:' || a.name as newname from v$controlfile a;
    select 'scp '||a.member ||' server_name:' || a.member as newname from v$logfile a;Edited by: mseberg on May 25, 2013 10:35 AM

Maybe you are looking for

  • How can I get my delete key to work as a delete key in Windows?

    When I try to control-alt-delete in order to log onto my computer profile, using only my MacBook Pro keyboard, Windows thinks that the delete key is a backspace key and will not let give me access to the login screen. If I connect an external keyboar

  • Tag cfhttp error 403

    tag  cfhttp cf9 brings in the error 403. In CF8 works  correctly. My code is: <cfhttp  url="http://cep.republicavirtual.com.br/web_cep.php?cep=91010000&formato=xml"  charset="iso-8859-1" method="get") /> <cfif  Left(cfhttp.StatusCode,3) is "200">    

  • Error In KM navigation iview

    Hi all, I have created a KM navigation iview,when i perview this i am getting this error System Error An exception occurred during the program execution. Below you will find technical information pertaining to this exception that you might want to fo

  • My iTunes hasn't been updated in a few years

    I've had to uninstall iTunes and just recently reinstalled it. I receive an update notification after the other & the upgrade list continues for days. Is it possible to do an overall update without doing them single? & I'm not sure what software I ha

  • HT4623 why do I keep getting a 9006 error code when I try to get this update via itunes

    Every time I try to update my Iphone 4s through my itunes I get an error code 9006... has this happened to anyone else with this latest update?