Closing the database

Its possible, we activate confirmation option before making the stop, it should be like that.

SQL > shutdown immediate
You want to stop the databae Yes/No (not) >

Hello

People are working parallel Production, Dev, Test, and DR, sometimes they are accidentally stop the Prodction database

To stop a database, you need special privileges.

So, from what you say, I understand that everyone can connect to the database with enough privilege to be able to stop it. This reflects a lack of security.

Stop and start the database are powerful administrative options and should be restricted to users who connect to Oracle with administrator privileges.

End-users, developers don't need to connect to the Production Server as 'root' or 'oracle' user OS. They failed to get the password for SYS or SYSTEM.

Apply safety rules, and no one could stop by mistake your Production database.

Best regards
Jean Valentine

Tags: Database

Similar Questions

  • change log mode archive without closing the database

    Hi all

    Is it possible to put the database in archive log mode before you shut down the database, and when the database stops and starts, the database should automatically be in log mode archive?

    because we cannot stop the database in the days of the week and we have system restart the weekend and we are not here this day here. So is there a way to set the database in the log archiving across the memory so that each restart of the database, it should start automatically in log mode archive.

    my environment is windows server 2008 R2 with oracle 11.2.0.3

    Thanks in advance.

    Published by: 931643 on 5 December 2012 10:37

    931643 wrote:
    Thanks for the reply Max Seleznev,

    First of all I thought to write the script to include in this process. But we cannot run all the commands in the sqlplus using windows task. for example:

    You can write a batchfile as below:

    CD.
    sqlplus / as sysdba
    Select name, open_mode from v$ database;

    When you run this, it will open up to sqlplus prompt but then will not run the query.

    This is the reason why I am to know if there is another way.

    Thank you

    When you do things wrong, you do not get the desired results

    Please desired SQL in a separate file (run.sql), then proceed as below

    sqlplus scott/tiger @run.sql

  • Updating of the database of db A db B and by changing the name from B to a.

    We have two databases A and B, both running on HP - UX environment on different servers. the two 10.2.0.1.0 version.

    Now, the A database's production with 75.5 GB of data. database B is just skeloton with any user of tablespaces.

    1. our requirement is to update / clone of database A to b. we are beautiful to recreate the database B as in the case of cloning. but we don't want to recreate the database B quite possible.
    2. after updating/clone, database B should be renamed_ to A database.

    All please can you the various methods available both by shutting down / without closing the database A and the approximate time needed on each case.

    A method is cloning the database.

    Shutdown method

    http://DB-Oracl.blogspot.com/2008/09/Superfast-cloning.html

    Using DBCA
    http://www.Oracle-base.com/articles/10G/ServerConfiguration10g.php#dbca_clone_database

    Clone of RMAN
    http://www.shutdownabort.com/QuickGuides/clone_rman.php

    HTH
    SS

  • Will be "immediately stopped" RAS redologs to archivelogs before closing the db?

    Hi guys,.

    I have a question that I want to erase and I hope Oracle gurus here can help me out with what I don't have freedom "immediately" to test the scenerio.

    When I run the command to stop, do a journal command before closing the database? Or do we have to do it manually before shutdown? I want to make sure I'm not losing last operations when a restore of database on a different server.

    -MM

    Published by: UserMM on October 15, 2008 09:04

    No, a STOP (whether IMMEDIATE or NORMAL) does NOT cause a switch of log of the last file Log of Redo ("CURENT"). At the start of the instance, Oracle continues with the same log file in the CURRENT file.

    Allows you to encode a Shutdown trigger to force a log switch, or to write a wrapper program to run the SQL command ("ALTER SYSTEM SWITCH LOGFILE"). However, as you will need to run the ALTER SYSTEM before, all actions (restoration of transactions that an immediate stop) closing would still be in the CURRENT journal of again after the switch.

    What you could do is to:
    a. immediate stop
    b. startup restrict
    c. ALTER SYSTEM SWITCH LOGFILE
    d. Normal or immediate stop

    These could be "merged" within a script.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

    Published by: Hemant K Collette on October 15, 2008 23:09

  • Missing database after closing the App

    One after the other, I recently doing listviews to my SQL database, but I had a problem. When I close the application and reopen it, some of the databases have disappeared. Here is the picture:

    Before closing the application:

    After the closing of the app and relaunch:

    What makes that happen, and what is the solution for this problem? Any help would be appreciated.

    Thank you.

    problem solved, it is just because of variable conflicts in the service of loading, thank you

  • Restrict closing of databases by srvctl never belonged not to the user.

    Hello
    I have a question concerning the closing of RAC databases. My DEV env is a 2-node RAC cluster. I have three databases running on these two nodes. The structure is as follows.

    A: one owner data (2 node rac)
    owner b: B (2 node rac) database
    owner c: c (2 node rac) of the database

    Logged in as owner has, using srvctl I can stop databases B and C. I was wondering if there is a way to disable this process. Only the owner should be able to stop the database, IE owner should be able to close A database or a database B and C and the same for all users.

    Is there a way we can restrict it?

    Thank you
    REDA

    probably they share the same primary or secondary groups.

    Check these and Add/Remove of these groups:

    $ id one

    $ id b

    $ id c

    Mustafa DOGANAY

  • Automation of closing of the database and commissioning

    Hi all

    I want to automate the closing of database and commissioning when the power linux operating system that I do the following:

    OS version: centos 5
    DATABASE version: oracle 11.2.0


    Su root
    1 - Edit the #vi/etc/oratabfile:
    ORCL:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1:Y

    2 - cd /etc/init.d and vi released
    Add the following lines to released
    #! / bin/bash
    # chkconfig: 35 99 10
    Description #: starts and stops the Oracle process
    ORA_HOME=/home/Oracle/app/Oracle/product/11.2.0/dbhome_1
    ORA_OWNER = oracle
    case '$1' in
    'Start')
    known - $ORA_OWNER - c "start ORA_HOME/bin/lsnrctl $".
    known - $ORA_OWNER - c $ORA_HOME/bin/dbstart
    ;;
    'stop')
    known - $ORA_OWNER - c "ORA_HOME/bin/lsnrctl stop $.
    known - $ORA_OWNER - c $ORA_HOME/bin/dbshut
    ;;
    ESAC


    3 # chgrp oinstall released
    4 # chmod 750 released

    5 # / sbin/chkconfig--add released

    When I have my os restrat and I tried to connect to sqlplus / as sysdba
    the release was "you are connected to an idle instance", I forgot something?

    Please can you tell me where is the error?

    Thank you in advance.

    You are welcome

    If you get your answer you please mark this thread replied.

  • Convert the database

    Could someone please tell me what I'm doing wrong? I am migrating the database company Multisim 9 to 10 Multisim.

    In the menu of multisim 10, I went to tools-> database-> converting a database. I selected the source database (from multisim 9) and click on start.

    The conversion went pretty fast and I closed the screen, but when I tried to merge the converted database, multisim gives the error: "not a valid password.

    I performed the operation on the database of the user and got the same error as well.

    Any ideas?

    Operating system is Windows Vista SP2, Multisim Power Pro v 9.0.155 and Mutisim Power Pro v 10.1

    I found what the problem was! It was the freaking access control user (UAC) in windows VISTA that was responsible for my headaches

    When I ran multisim 9 as administrator (click right on the multisim icon and choose "run as Administrator"), I saw 5 components just as you did, but when I ran without administrator privileges, I saw all the components of 1411

    So, I ran multisim 9 without privileges to administrator and exported all the components in a temporary directory. I then reopened multisim with administrator privileges and re-import back to my database components. After that, I was able to use the database to convert in multisim 10 to import all the components.

    Garret, I can't thank you enough for the assistance provided. Thank you very much.

  • can't understand why an extract of the database restore fails (missing archive logs)

    Dear,

    I'm completely back up my database ensures every night with following statement.

    full backup AS BACKUPSET COMPRESSED ORCL_FULL_STBY format database tag ' / oradata/archive/fast_recovery_area/%d_%T_%s_%p_FULL_STBY' more tag ORCL_FULL_STBY archivelog delete all entries;

    I wanted to check with 'restore... Preview' if my backup is good enough to restore the database from scratch.
    result = failed!
    Reason:
    "any backup log archived for thread 1 with sequence 65 and YVERT departure from 49020676 found to restore."

    I have read the documentation oracle and articles for days, but I did not understand that even though I take online backup yesterday if I want to restore my database today I still need archival newspapers last month?

    can you please review my analysis and tell me where I am doing wrong?

    for example a piece from my last backup;

    Time of accomplishment BS key Type LV size device Type elapsed time
    ------- ---- -- ---------- ----------- ------------ ---------------
    1008 full 199.25 M DISK 00:04:44 October 8, 15
    BP key: 1010 situation: AVAILABLE Tablet: YES Tag: ORCL_FULL_STBY
    Item name: / oradata/archive/fast_recovery_area/QIPDB1_20151008_1057_1_FULL_STBY
    List of defined backup data files 1008
    Name of file LV Type cash SNA cash time
    ---- -- ---- ---------- --------- ----
    50570723 full 1 8 October 15 /oradata/data/qipdb1/system01.dbf
    4 integer 50570723 8 October 15 /oradata/data/qipdb1/users01.dbf

    as you can see "Cash SNA" is 50570723 so tells me that my understanding if restore these backups I need archived newspapers on top of the YVERT.
    for me the best candidate is

    Time of accomplishment time BS key size Device Type
    ------- ---------- ----------- ------------ ---------------
    65,25 M 1004 00:01 DRIVE: 24 OCTOBER 8, 15
    BP key: 1006 situation: AVAILABLE Tablet: YES Tag: ORCL_FULL_STBY
    Part name: /oradata/archive/fast_recovery_area/QIPDB1_STBY/backupset/2015_10_08/o1_mf_annnn_ORCL_FULL_STBY_c1dkfw9k_.bkp

    List of newspapers archived in backup set 1004
    The next time that THRD Seq YVERT low low time next YVERT
    ---- ------- ---------- --------- ---------- ---------
    1 79 50310555 7 OCTOBER 15 50570723 8 OCTOBER 15

    BUT out of "restore...". Preview' RMAN stil tells me that

    any backup log archived for thread 1 with sequence 65 and YVERT departure from 49020676 found to restore
    any backup log archived for thread 1 with sequence 66 and YVERT departure from 49020693 found to restore
    any backup log archived for thread 1 with sequence 67 and YVERT departure from 49020696 found to restore
    any backup log archived for thread 1 with sequence 68 and YVERT departure from 49020761 found to restore
    any backup log archived for thread 1 with sequence 69 and YVERT departure from 49020836 found to restore
    any backup log archived for thread 1 with sequence 70 and YVERT departure from 49020919 found to restore
    any backup log archived for thread 1 with sequence 71 and YVERT departure from 49021021 found to restore
    any backup log archived for thread 1 with sequence 72 and YVERT departure from 49155291 found to restore
    any backup log archived for thread 1 with sequence 73 and YVERT departure from 49324912 found to restore
    any backup log archived for thread 1 with sequence 74 and YVERT departure from 49498102 found to restore

    When I look at V$ ARCHIVED_LOG I see seems indeed to these archived logs removed for cause of "more tag ORCL_FULL_STBY archivelog delete all entries ' that they have been deleetd after saving.
    and because of my retention policy and script; I remove the logs also archived backups that are more than 2 days.

    S SEQUENCE # FIRST_CHANGE # NEXT_CHANGE #.
    - ---------- ------------- ------------
    65 49020676 49020693 D
    A 49020693 OF 49020676 65
    D 68 49020761 49020836
    66 49020693 49020696 D
    67 49020696 49020761 D
    69 49020836 49020919 D
    70 49020919 49021021 D
    49155291 49021021 71 D
    72 49155291 49324912 D
    D 73 49324912 49498102
    74 49498102 49632131 D

    I still don't understand why rman complains of the archived logs that are for an older sequence (SNA) as my last backup
    because I was assuming that the concerned newspapers archived should have already applied to these files of data, right?

    My final goal is to deliver below for the case that we have lost everything.

    Run {}
    restore the database;
    recover the database;
    }

    Thanks in advance,
    Halit

    Hi guys,.

    I found the root cause and workaround

    RMAN-06025 - RMAN RESTORE DATABASE OVERVIEW to the backup site asks former newspaper (Doc ID 1599013.1)

    CAUSE Checkpoint_change# standby controlfile not refreshed properly.  BUG 15876029 - RESTORE PREVIEW ASKING OLD ARCHIVE LOG IN STANDBY DATABASE  Closed as DUPLICATE of  BUG 8740124 - CURRENT STANDBY REDO LOG GROUP SHOULD BE INCLUDED IN THE DATABASE BACKUP BY RMAN SOLUTION  1) Workaround is to recreate the standby controlfile.  OR  2) upgrade to 11.2.0.4 or above where Bug 8740124  is fixed  OR  3) check for availability of patch 8740124
    
  • Why commit after must choose to close the database

    11.2.0.4

    I have a performance issue in sessions that have been opened for some time and who have issued queries that use the database link.

    Tracks in session,

    query that uses dblink

    < some time later new issues, query may minutes waiting for the return >

    I can see that the wait event expects dblink.   but there is no reason so he could be waiting (remote DB is fine and said the link is ok) so instead of find me with this problem, Im going to force a closing of the database link after each link request.

    change the connection to session database < dblink >;

    But I get ora-02080 link is used, so I must issue a commit to get the link to close. (I can replicate this in sqlplus).  John spencer said that he is expected here behavior

    Re: Problem with deleting a database link (it is in use)

    It is the code is embedded in java applications and I might not always want to do a commit at that time here.

    So the question is why does the commit?

    Im going to answer myself, or rather quote someone else, JL covers this if you are looking for internet dblink_commit I can't seem to send the link for some reason any.

  • Restore the database only have files DBF and CTL [Windows] [11.2.0]

    Hi all

    Got a little a situation here. A development database (11.2.0).) on a Server Windows 2008 sank yesterday.

    Something went horribly wrong with the hardware, so we can't start the machine.

    I removed the hard drive and attached it to another windows machine. I got lucky and can get all the files on the disk.

    Is there a way I can recover this database? I read some where people say you can just re - create a new database and then replace the DBF files.

    Judge that worked pretty good, control files were attached. But when I tried to connect with any user, I got this beauty of an error:

    ORA-12432: LBAC error: zllessesinit:OCIStmtExecute (Yes it's English :-)).

    Anyone have some advice on this? Should not be a solution for the above error. I just want to get current DB running on a virtual computer so that I can expdp data out of it.

    You might have figured out, the original database has not been closed correctly, since the entire machine just crashed. If I can't get back it, this isn't a problem.

    I'm quite new to the Oracle DBA part, so sorry if this is a silly question.

    So unclear and more information needed, pull! ;-)

    I found the solution to my problem:

    It is possible to simply re-create the database, stop it and and replace the DBF files in the new instance.

    However, I didn't know that the old database is a 32-bit version. The news is a 64-bit.

    I re installed a 32-bit host on the new machine, and that did the trick.

    Hope this helps other people with the same problem.

  • Problem with the restoration of the database

    Hello world

    I have a strange problem while restoring the database with rman. The problem is that the data are not restored at all.

    Let me show you what I do step by step:

    1. create the test table:

    $ sqlplus / as sysdba

    SQL * more: Production of release 11.2.0.1.0 Thu Apr 17 22:51:58 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Connected to:

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

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > create table test (ID);

    Table created.

    SQL > insert into values test (1);

    1 line of creation.

    SQL > commit;

    Validation complete.

    2. backup the current database:

    rman target $ /.

    Recovery Manager: release 11.2.0.1.0 - Production Fri Apr 17 22:56:44 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    connected to target database: ORACLE (DBID = 1672007929)

    RMAN > backup database;

    From 17 April 14 backup
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 6 type of device = DISK
    channel ORA_DISK_1: starting full datafile from backup set
    channel ORA_DISK_1: specifying datafile (s) in the backup set
    Enter a number of file datafile = 00001 name=/u01/app/oracle/oradata/oracle/system01.dbf
    Enter a number of file datafile = name=/u01/app/oracle/oradata/oracle/sysaux01.dbf 00002
    Enter a number of file datafile = name=/u01/app/oracle/oradata/oracle/undotbs01.dbf 00003
    Enter a number of file datafile = 00005 name=/u01/app/oracle/oradata/oracle/example01.dbf
    Enter a number of file datafile = name=/u01/app/oracle/oradata/oracle/users01.dbf 00004
    channel ORA_DISK_1: from room 1 to 17 April 14
    channel ORA_DISK_1: finished piece 1 to 17 April 14
    piece handle=/u01/app/oracle/flash_recovery_area/ORACLE/backupset/2014_04_17/o1_mf_nnndf_TAG20140417T230734_9o1j980f_.bkp tag = TAG20140417T230734 comment = NONE
    channel ORA_DISK_1: complete set of backups, time: 00:00:57
    channel ORA_DISK_1: starting full datafile from backup set
    channel ORA_DISK_1: specifying datafile (s) in the backup set
    including the current control in the backup set file
    including current SPFILE in the backup set
    channel ORA_DISK_1: from room 1 to 17 April 14
    channel ORA_DISK_1: finished piece 1 to 17 April 14
    piece handle=/u01/app/oracle/flash_recovery_area/ORACLE/backupset/2014_04_17/o1_mf_ncsnf_TAG20140417T230734_9o1jc09s_.bkp tag = TAG20140417T230734 comment = NONE
    channel ORA_DISK_1: complete set of backups, time: 00:00:01
    Backup finished on 17 April 14

    3. change the data in the test table

    $ sqlplus / as sysdba

    SQL * more: Production of release 11.2.0.1.0 Thu Apr 17 23:10:16 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.


    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > select * from test;

    ID
    ----------
    1

    SQL > update test set ID = 2;

    1 line update.

    SQL > commit;

    Validation complete.

    4. restore the database

    RMAN target /.

    Recovery Manager: release 11.2.0.1.0 - Production Fri Apr 17 23:11:15 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    connected to target database: ORACLE (DBID = 1672007929)

    RMAN > shutdown immediate;

    using the control file of the target instead of recovery catalog database

    database closed

    dismounted database

    Instance Oracle to close

    RMAN > bootable media.

    connected to the database target (not started)

    Oracle instance started

    mounted database

    Total System Global Area 835104768 bytes

    Bytes of size 2217952 fixed

    629147680 variable size bytes

    197132288 of database buffers bytes

    Redo buffers 6606848 bytes

    RMAN > restore database;

    From restoration to April 17, 14

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 156 type device = DISK

    channel ORA_DISK_1: from the restore backup set data file

    channel ORA_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_DISK_1: restore datafile 00001 to /u01/app/oracle/oradata/oracle/system01.dbf

    channel ORA_DISK_1: restore datafile 00002 to /u01/app/oracle/oradata/oracle/sysaux01.dbf

    channel ORA_DISK_1: restore datafile 00003 to /u01/app/oracle/oradata/oracle/undotbs01.dbf

    channel ORA_DISK_1: restore datafile 00004 in /u01/app/oracle/oradata/oracle/users01.dbf

    channel ORA_DISK_1: restore datafile 00005 to /u01/app/oracle/oradata/oracle/example01.dbf

    channel ORA_DISK_1: backup /u01/app/oracle/flash_recovery_area/ORACLE/backupset/2014_04_17/o1_mf_nnndf_TAG20140417T230734_9o1j980f_.bkp piece reading

    channel ORA_DISK_1: room handle=/u01/app/oracle/flash_recovery_area/ORACLE/backupset/2014_04_17/o1_mf_nnndf_TAG20140417T230734_9o1j980f_.bkp tag = TAG20140417T230734

    channel ORA_DISK_1: restored the backup part 1

    channel ORA_DISK_1: restore complete, duration: 00:00:55

    Restoration finished in 17 April 14

    RMAN > restore database;

    To go back to April 17, 14

    using channel ORA_DISK_1

    starting media recovery

    media recovery complete, duration: 00:00:03

    Finished recover at April 17, 14

    RMAN > sql 'alter database open;

    SQL statement: alter database open

    5. check if the data has been restored

    sqlplus / as sysdba

    SQL * more: Production of release 11.2.0.1.0 Thu Apr 17 23:14:39 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.


    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > select * from test;

    ID
    ----------
    2

    Summary:

    Data has not changed. Provided the ID is 1, but after the success of data recovery is not restored (ID is always 2).

    Can someone help me? What I am doing wrong?

    Database is Oracle 11 g with archivelog active

    Ol6 2.6.39 Linux OS - 300.17.2.el6uek.x86_64

    RMAN > restore database;

    To go back to April 17, 14

    using channel ORA_DISK_1

    starting media recovery

    media recovery complete, duration: 00:00:03

    Finished recover at April 17, 14

    RMAN > sql 'alter database open;

    SQL statement: alter database open

    5. check if the data has been restored

    sqlplus / as sysdba

    SQL * more: Production of release 11.2.0.1.0 Thu Apr 17 23:14:39 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > select * from test;

    ID
    ----------
    2

    Summary:

    Data has not changed. Provided the ID is 1, but after the success of data recovery is not restored (ID is always 2).

    Can someone help me? What I am doing wrong?

    Database is Oracle 11 g with archivelog active

    the recovery was successful, but achieved your goal.

    There are several options to reach your goal to recover your database to a particular State that is point in time.

    1 restore the file of control as noted above. you restore the control file must not be aware of the generated once archivelog that you update your table. IE backup controlfile prior you updatedyour table.

    2. do not apply archivelog all during recovery. You can use SNA, SEQUENCE, RESTORE POINT option of the recover command. This option requires that you open your database with resetlog.

    read: scene of Flashback and the database Point-in - time recovery

    After a restore successful your database (before the recover command), you can "alter database open read-only" to check and confirm the values in the table.

    HTH

    Tobi

  • How to make a backup of the database with RMAN Oracle Single Instance

    People,

    Hello. I use the server of Oracle 11 GR 1 material with operating system Oracle Linux 5.10 database.

    I understand how to back up the database instance in SQL Server with Windows. But do not really understand how to back up the database instance in Oracle on Linux.
    I did it cold and hot backup for the database HRCS90 instance, but both receive the same error message.


    Cold backup is below:

    SQL > startup
    ORACLE instance started.

    Total System Global Area 538677248 bytes
    Bytes of size 2146024 fixed
    528482584 variable size bytes
    4194304 buffers of data bytes
    Redo buffers 3854336 bytes
    Mounted database.
    Open database.


    SQL > shutdown immediate
    The database is closed.
    The database is dismounted.
    ORACLE instance stops.


    RMAN > backup database;

    From backup 25 November 13
    using the control file of the target instead of recovery catalog database
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup command to the 25/11/2013 14:26:52
    RMAN-06171: not connected to the target database


    RMAN > backup HRCS90

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01009: syntax error: found 'distinctive sign': expected an of: ' archivelog, auxiliary, as, backup backupset, blocks, channel, check, copy, copies, controlfilecopy, cumulative, current, basic data, datafile, datafilecopy, device, diskratio, db_recovery_file_dest, db_file_name_convert, duration, filesperset, for, format, from, full, strength, file, incremental, keep, (, maxsetsize nochecksum, noexclude, nokeep, not, proxy, pool, re-use, recovery, section, skip). ', spfile, skip readonly, setsize, tablespace, tag to validate.
    RMAN-01008: the identifier of the AfDB was: HRCS90
    RMAN-01007: line 1 column 8 file: entry standard


    RMAN > backup database HRCS90

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01009: syntax error: found 'distinctive sign': expected an of: ' archivelog, auxiliary, backupset channel, copy, controlfilecopy, backup, common, base data, data file, datafilecopy, remove, diskratio, db_recovery_file_dest, filesperset, format, force, file, include, keep, (, maxsetsize, noexclude, nokeep, not, pool, more reuse, recovery, section, skip, spfile, pass readonly, setsize, tablespace, tag, to).
    RMAN-01008: the identifier of the AfDB was: HRCS90
    RMAN-01007: line 1 column 17 file: entry standard

    While the instance of database HRCS90 is starting, I do hot backup by using the same commands and get the same error message with above cold backup.

    My question is:

    Can any folk tell me specific steps (order by order) to back up a single instance of the database in Oracle with RMAN?


    Thank you.

    Yes, you can restore and recover the backup, but not at the moment. You will only be able to restore and recover at the time of your backup.

    For example.

    If you take backup (mount point with no mode of journal archive) at 06:00 and your grave database crashes at 21:00, you will be able to restore and recover until 06:00. You will find all the changes made to the database between 06:00 and 21:00.

    If you want your database to recover until 9 PM or until a point in time, then you must put your database in log mode archive, and then save the archives.

  • frmcmp cannot compile the modules containing SQL code that connected to the database

    Hello

    I checked several hundred messages of the forum on the net without finding a solution.

    I have a Linux server with 11.1 WebLogics (11 GR 1 material) and FormsRuntime installed.

    I am logged in as root.

    I put all the environment variables based on the values in default.env.

    In addition, I updated TERM and ORACLE_TERM vt220. And TNS_ADMIN to the location of the sqlnet.ora and tnsnames.ora.

    I compiled a simple .pll containing only the following code:

    IS test PROCEDURE

    an INTEGER: = 0;

    BEGIN

    a: = 1;

    END;

    command:

    frmcmp_batch module = TESTLIBPLAIN.pll userid=myuser/mypassword@mydb module_type = LIBRARY output_file = TESTLIBPLAIN.plx compile_all = Yes = Yes = No. batch connection

    result: successful compilation. generated .plx.

    now, I'm trying to compile an another .pll containing just the following code:

    IS test PROCEDURE

    an INTEGER: = 0;

    BEGIN

    Select 1 in the doubles.

    END;

    command:

    frmcmp_batch module = TESTLIBSQL.pll userid=myuser/mypassword@mydb module_type = LIBRARY output_file = TESTLIBSQL.plx compile_all = Yes = Yes = No. batch connection

    result: error:

    "

    11 forms (form of the compiler) Version 11.1.1.3.0 (Production)

    Copyright (c) 1982, 2010, Oracle and/or its affiliates.  All rights reserved.

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

    With partitioning, OLAP and Data Mining options

    PL/SQL Version 11.1.0.7.0 (Production)

    Oracle V11.1.1.3.0 - Production procedure generator

    Oracle virtual graphics system Version 11.1.1.3.0 (Production)

    Oracle Multimedia Version 11.1.1.3.0 (Production)

    Oracle tools integration Version 11.1.1.2.0 (Production)

    Common tools Oracle area Version 11.1.1.3.0

    Oracle CORE Production 11.1.0.7.0

    Compile the library TESTLIB.

    Invalidate the body TEST procedure...

    Compilation of body TEST procedure...

    ERROR on line 5, column 1 0

    Ignored SQL statement

    Library TESTLIB closing...

    Errors on TEST:

    PL/SQL ERROR on line 5, column 1 0

    Ignored SQL statement

    Could not generate the library.

    FRM-30312: unable to compile the library.

    "

    the two libraries differ by having used SQl commands or not.

    I tried to compile some more complex .pll and .fmb containg the SQL code. I get similar error messages. The messages that I receive for each module are the same, I would get when compiling the module with FormBuilder 9i (Windows) without being connected to the database.

    So my first thought was, this frmcmp_batch is unable to connect to the database.

    BUT:

    From frmcmp_batch with an invalid user, password, or database name not existing (resp. not in tnsnames.ora), results in appropriate error messages (not found TNS, refusal to sign etc.).

    With myuser/mypassword@mydb I don' t get this kind of messages.

    sqlplus myuser/mypassword@mydb works.

    myuser can access all objects in the database mydb.

    mydb tnsping works.

    When I check v$ session on mydb while (!) frmcmp_batch is running, I see that it is in fact a db session, created from myuser: DB-User = myuser, terminal = myappsever, osuser = root, remote process = frmcmp_batch.  And State of the current session of the db is ACTIVE.

    As a result, frmcmp_batch fails with error messages that I expect that when there is no connection to the base, if it is connected!

    Any ideas what could be wrong with my setup?

    Help appreciated.

    Jean

    I found the solution. Seems, fmrcmp 11g can connect to, but compiles not on the 9i database. With the help of a Database 11 g resolves the problem :-)

  • Connect to the database that has lost access to a partition

    Hi all
    Suppose we have a partitioned table that look in some storage (physically) different. If the database lost access to one of them, what happens? The database can be loaded? If the user is unable to connect to the database, what can we do to solve the problem (because one of the characteristics of partitioning is availability)? If a user tries to get some data (by request), oracle will declare that a partition is not available and so the information may be incomplete?
    Best regards

    Interesting, above should work without error, as is explained in the following note:

    * How drop a Tablespace offline when the Partitions of a partitioned Table resides in [ID 267125.1] *.

    I wrote my previous post based on my memory of a similar situation several months ago, but I tested it again now:

    SQL> create tablespace part01 datafile 'C:\oracle\base\oradata\ORCL\part01.dbf' size 10M;
    
    Tablespace created.
    
    SQL> create tablespace part02 datafile 'C:\oracle\base\oradata\ORCL\part02.dbf' size 10M;
    
    Tablespace created.
    
    SQL> create table t1 (id number, text varchar2(100), constraint id_pk primary key (id))
        partition by range(id)
        (
        partition low values less than (1000) tablespace part01,
        partition high values less than (2000) tablespace part02
        );
    
    Table created.
    
    SQL> insert into t1 select rownum, 'hello' from dual connect by level <2000;
    
    1999 rows created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> shu immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    
    del C:\oracle\base\oradata\ORCL\_part01.dbf
    sqlplus / as sysdba
    
    SQL*Plus: Release 11.2.0.3.0 Production on Sun Apr 21 10:36:35 2013
    
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area 2137886720 bytes
    Fixed Size                  2256912 bytes
    Variable Size            1392513008 bytes
    Database Buffers          738197504 bytes
    Redo Buffers                4919296 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> alter database datafile 5 offline drop;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> select count(*) from t1;
    select count(*) from t1
                         *
    ERROR at line 1:
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> select count(*) from t1 where id >= 1000;
    
      COUNT(*)
    ----------
          1000
    

    Note that, drop partition might work, based on the structure of the table / index, but I created an example where it does not work.

    
    SQL> alter table t1 drop partition low;
    alter table t1 drop partition low
    *
    ERROR at line 1:
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> create table t2 as select * from t1 where 1=2;
    
    Table created.
    
    SQL> alter table t1 exchange partition low with table t2;
    
    Table altered.
    
    SQL> select count(*) from t1;
    
      COUNT(*)
    ----------
          1000
    

Maybe you are looking for