Reg: verification of users in the database pending

I need to check the users in the database pending. In the primary database, I got the result by querying dba_users. But how to check standby db, without opening the database.
Is it possible with any views?

No, you can't.

Assuming that physical standby, you can only query dynamic views of performance when it is in MOUNT.

I like the answer of sb92075. Its a copy of the same database. We're in a mode where you can search for users, and we're in a mode where you can not.

Make sure that your databases are synchronized and interrogate primary school.

Best regards and thanks!

mseberg

Tags: Database

Similar Questions

  • last logon of the user to the database

    Hello

    I need to find the last logon of the user to the database, any ideas who view data dictionary can help me?

    Thank you.

    user8869798 wrote:

    Hello

    I need to find the last logon of the user to the database, any ideas who view data dictionary can help me?

    Thank you.

    What version of Oracle?

    With 12 c, it's to (drum roll, please...) DBA_USERS.

    12 c, it is not in any table/view documented .

  • Problem with the current SNA on the database pending...

    Hello;

    A day ago I went on our main database on the eve of database, everything went well. But today when I checked current SNA for the two database, I saw that the two were different. and current SNA did not change on the standby database. What can cause this problem?

    some exits here when I tried to find the problem...

    on the primary database.

    SQL> select thread#, max(sequence#) from v$archived_log group by thread#;       
       THREAD# MAX(SEQUENCE#)
    ---------- --------------
             1            156 
    on the database pending;
    SQL> select thread#, max(sequence#) from v$archived_log  where applied='YES' group by thread#;
    
       THREAD# MAX(SEQUENCE#)
    ---------- --------------
             1            156 
    standby mode
    SQL> select LAST_CHANGE#, STATUS from V$STANDBY_LOG;
    
    LAST_CHANGE# STATUS
    ------------ ----------
         2927636 ACTIVE
               0 UNASSIGNED
               0 UNASSIGNED
               0 UNASSIGNED 
    standby mode
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
        2916773 
    on primary
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
        2927809
    Published by: Ecimen on 01:36 18.Eki.2012

    Published by: Ecimen on 01:47 18.Eki.2012

    SQL > change database recovery managed standby database disconnect from the session.

    modify the recovery of database managed standby database disconnect from the session
    *
    ERROR on line 1:
    ORA-01153: an incompatible media recovery is active
    >

    Most likely you had missed the log files from the backup site. You can check in question "select max(SEQUENCE#) from v$ loghist. Most likely old log files has not yet delivered to the main site backup site. Another simple method that you can do is stop tio watch db, and then start it as a mode of editing if you have 11 GR 2 db which should be enough. Oracle will automatically synchronized between primary and standby for you. If you can't wait, you can start the editing for db in waiting mode, then run the command "recover the database sleep until cancel;

  • creating user using the database link

    Hello

    I have 11g installed on one of the server
    I created the database BUGAU to bugau.us.oracle.com link
    link works fine

    "Select * from table@"Bugau "gives the expected result

    I ran the Sub statement to my server using the dblink.but do not know how to use the dblink to that effect. Please sat down

    CREATE USER ABC IDENTIFIED BY welcome TEMPORARY by DEFAULT TABLESPACE USERS_001 temp123 TABLESPACE;

    GRANT DEFAULT TO abc;

    ALTER USER abc PROFILE LEVEL_1;

    Thank you
    Archana

    Bravid wrote:

    You cannot create a user on a remote database using a database link.

    You can, but it is not a good design:

    SQL> exec dbms_utility.exec_ddl_statement@orcl('CREATE USER ABC IDENTIFIED BY ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_utility.exec_ddl_statement@orcl('GRANT CREATE SESSION TO ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> connect abc@orcl/ABC
    Connected.
    SQL> 
    

    Of course, the user in the database unite ORCL must have EXECUTE on DBMS_UTILITY privilege.

    SY.

  • How to change the password for all users in the database

    Hi buddies!

    Could someone tell me how to change the password for all users in the database? I want to set the same password for all users.

    Thank you.

    Nith

    Published by: user645399 on March 1, 2011 14:23

    Write the file spooling
    as

    Make sure that all profiles has password_verify_function with a NULL value

    then

    Select 'edit user' | username: ' identified by ;' from dba_users;

    you will get the output... you just run.

  • How to know all queries executed by users of the database?

    Hi all
    I am new to Oracle. I created a database (version 10.2) and several users in this database. I would like to know how to record in a database table all queries executed by users of the database.
    Thank you.

    I would like to know how to record in a database table all queries executed by users of the database.

    activate SQL_TRACE for each session, but such an effort cost more than any advantage gained.

  • safety of the user in the database

    Hello

    I have a following requirement:

    Oracle version: oracle 8i (8.1.7.0.0)

    I need to create a schema (user) and it will contain data of staking and none of the other user in the database should not acess that presents data to users,

    How I can implent suggestions are appreciated.

    Thank you

    Prakash GR

    Prakash - we found the 'problem' - permission.

    In order to do a full export the user has select on all tables.

    Oded

  • user and the database of departure

    Hi gurus,

    friendly request but me information on less than question, thanks in advance.

    * When the database is out of service - for starting db how authentication? How does the db recognizes users who begin?


    Thank you
    REDA

    You must log on as a user with privileges "sysdba" to start the database that is authenticated using password * 'orapwd' * file resides on the server. It is authenticated by the database itself. To learn more:

    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/dba006.htm

  • Unable to connect to the database pending

    Hello
    I followed http://www.oracle-base.com/articles/11g/DataGuardSetup_11gR2.php.
    Primary data: dgtst
    SID: dgtst
    Computer name: hercules

    Databae standby: drtst
    SID: dgtst
    computer name: pulse

    In the machine in standby:
    DB status nomount is.

    $ echo $ORACLE_SID
    dgtst

    $ echo $ORACLE_HOME
    /U01/app/Oracle/product/11.2.0/DG11gR2TST

    Tnsping is OK standby machine to two databases:
    $ tnsping dgtst
    TNS Ping Utility for HPUX: Version 11.2.0.2.0 - Production on 24-FEB-2012 17:41:20
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = hercules)(PORT = 1528))) 
    (CONNECT_DATA = (SERVICE_NAME = dgtst)))
    OK (0 msec)
    
    
    $ tnsping drtst
    TNS Ping Utility for HPUX: Version 11.2.0.2.0 - Production on 24-FEB-2012 17:41:32
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = pulse)(PORT = 1528))) 
    (CONNECT_DATA = (SERVICE_NAME = dgtst)))
    OK (0 msec)
    Try to connect to the primary database of the machine in standby: OK
    $ sqlplus sys/UsingTheSamePassword@dgtst as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on Fri Feb 24 17:50:18 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    SQL> 
    Try to connect to the database machine on standby pending: FAILURE
    $ sqlplus sys/UsingTheSamePassword@drtst as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on Fri Feb 24 17:51:28 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    ERROR:
    
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Please note that I have copied the file orapwd of main machine to machine standby.
    The sys password is the same for the primary and standby

    Please advice

    You have saved the data base for the LISTENER and not LISTENER_DRTST. Join the LISTENER_DRTST statically
    That is to say, add the following lines to the listener.ora file.

    SID_LIST_LISTENER_DRTST =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = dgtst)
    (ORACLE_HOME = u01/app/oracle/product/11.2.0/DG11gR2TST)
    (SID_NAME = dgtst)
    )
    )

    Steve

    Published by: Steve Abraham on February 24, 2012 08:18

    Published by: Steve Abraham on February 24, 2012 08:19

    Published by: Steve Abraham on February 24, 2012 08:20

    Published by: Steve Abraham on February 24, 2012 08:21

  • Create read only user to the database

    Hi all

    I need to create read only the user to one of the databases so that he should have the select query on all tables, views etc...

    Can I create a user of this type with the role OEM_MONITOR at once?

    Please advice
    Concerning
    Arun

    No.:

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> create user toem identified by toem;
    
    User created.
    
    SQL> grant oem_monitor to toem;
    
    Grant succeeded.
    
    SQL> select count(*) from hr.jobs;
    
      COUNT(*)
    ----------
            19
    
    SQL> connect toem/toem
    Connected.
    SQL> select count(*) from hr.jobs;
    select count(*) from hr.jobs
                            *
    ERROR at line 1:
    ORA-01031: insufficient privileges
    
    SQL>
    

    Grant select ANY TABLE might work, but note it is generally regarded as a bad security practice:
    http://download.Oracle.com/docs/CD/E11882_01/network.112/e10574/guidelines.htm#CHDHFIFG

    Edited by: P. Forstmann on March 8, 2010 21:31

  • query to display objects for all users in the database

    Hi all

    I want to make a query that Lee display. result for all users in a database.

    Total number of #tableau #Indexes #Packages #Procedure #Functions #Sequences #Views # other username

    ABC 11 5 1 1 1

    1 1 1 0

    Something like this would work in 10g and before:

    SELECT     OWNER
    ,     SUM(CNT) AS "TOTAL"
    ,     MAX(DECODE(OBJECT_TYPE,'TABLE',CNT,0)) AS "#TABLE"
    ,     MAX(DECODE(OBJECT_TYPE,'INDEX',CNT,0)) AS "#INDEX"
    ,     MAX(DECODE(OBJECT_TYPE,'PACKAGE',CNT,0)) AS "#PACKAGE"
    ,     MAX(DECODE(OBJECT_TYPE,'PROCEDURE',CNT,0)) AS "#PROCEDURE"
    ,     MAX(DECODE(OBJECT_TYPE,'FUNCTION',CNT,0)) AS "#FUNCTION"
    ,     MAX(DECODE(OBJECT_TYPE,'SEQUENCE',CNT,0)) AS "#SEQUENCE"
    ,     MAX(DECODE(OBJECT_TYPE,'VIEW',CNT,0)) AS "#VIEW"
    ,     MAX(CASE WHEN OBJECT_TYPE NOT IN ('TABLE','PACKAGE','INDEX','PROCEDURE','FUNCTION','SEQUENCE','VIEW') THEN CNT ELSE 0 END) AS "#OTHER"
    FROM
    (
         SELECT     OWNER
         ,     OBJECT_TYPE
         ,     COUNT(*)     AS CNT
         FROM     ALL_OBJECTS
         GROUP BY OWNER
         ,     OBJECT_TYPE
    )
    GROUP BY OWNER
    ORDER BY OWNER;
    

    11 g, you can use the PIVOT operator to do the same.

    You can change this by changing the statements of DECODING of CASE statements if you can use the LIKE operator to catch all objects such as VIEWS and VIEWS MATERIALISEES.

    For example:

    MAX(CASE WHEN OBJECT_TYPE LIKE '%VIEW%' THEN CNT ELSE 0 END
    

    HTH!

  • trace level of the user in the database.

    Hello

    I need emergency assistance. I wanted to take the trace of a perticular user sessions in the database. Could you please provide me with the steps to generate the trace of the user when the user connecting. In my case, when the connection of the user by the application, there are many session generated in the database. So I wanted to take the trace to the user level. I have Oracle 9i server.

    Thanks and greetings

    Probably the best for you would be to create a database trigger after the logon.

    CREATE OR REPLACE TRIGGER set_trace after logon on DATABASE
    BEGIN

    If the user = ('username') then
    run immediately "alter session set sql_trace = true";
    immediate ' alter events set "trace 10046 name context of session forever, level 12". "
    end if;

    EXCEPTION
    WHILE OTHERS THEN
    -Consider recording the error and then re-raise
    NULL;
    END set_trace;

    /

    You can read this thread as well:
    Oracle 9i - SQL Trace & Bind Variables

  • drop more than one user in the database

    Hi How can I deposit more user user at the same time for example, I have users who got the prefix UCM how can I make use I drop all the user with this prefix

    Drop user cascade ucm_tets

    where username like UCM %

    There is no such thing, but you can use:

    Select "user menu". u.username |' waterfall;' u dba_users

    where u.username like '% UCM % '.

    ----

    Ramin Hashimzade

  • Error in the database pending Assembly

    Hi all

    OS: Solaris
    DB: 10 G

    I am facing the error listed below while I'm creating a database of watch on the same server.

    Here are the steps that I followed the same thing.

    1. check connectivity.
    2. has created the pfile to DB primary as mentioned below:
    *. DB_BLOCK_SIZE = 8192
    *. OPEN_CURSORS = 300
    *. CURSOR_SHARING = FORCE
    *. BACKGROUND_DUMP_DEST = "/ 11 g/oradata/admin/ettest/bdump"
    *. CORE_DUMP_DEST = ' / 11 g/oradata/admin/ettest/cdump ".
    *. User_dump_dest = ' / 11 g/oradata/admin/ettest/udump ".
    *. CONTROL_FILES =("/11g/oradata/Admin/Data/controlfiles/control01.) CTL"," / 11 g/oradata/Admin/Data/controlfiles/control02. " CTL")
    *. Db_name = ettest
    *. PROCESS = 150
    *. UNDO_MANAGEMENT = AUTO
    *. UNDO_TABLESPACE = undotbs
    * full = '10.2.0.1.0'
    *. STANDBY_FILE_MANAGEMENT = 'AUTO '.
    *. LOG_ARCHIVE_DEST_1 =' location = / 11 g/oradata/archives /'
    *. LOG_ARCHIVE_DEST_STATE_2 = 'ENABLE '.
    *. DB_FILE_NAME_CONVERT ='/ 11 g/oradata/admin/data/data files / ',' / 11 g/oradata_dr/ettestdr/data files /'
    *. LOG_FILE_NAME_CONVERT ='/ 11 newspapers g/oradata/admin/data/files / ',' / 11 g/oradata_dr/ettestdr/redologs /'
    *. STANDBY_ARCHIVE_DEST = ' / 11 g/oradata_dr/ettestdr/dr_archives/ettestdr.
    *. LOG_ARCHIVE_DEST_2 = "SERVICE = ettestdr'"
    *. FAL_SERVER = "ETTESTDR."
    *. FAL_CLIENT = "ETTEST."

    3 set the pfile Dr. file:

    *. DB_UNIQUE_NAME = ettestdr
    *. DB_BLOCK_SIZE = 8192
    *. OPEN_CURSORS = 300
    *. CURSOR_SHARING = FORCE
    *. BACKGROUND_DUMP_DEST = "/ 11 g/oradata_dr/ettestdr/admin/bdump"
    *. CORE_DUMP_DEST = ' / 11 g/oradata_dr/ettestdr/admin/cdump ".
    *. User_dump_dest = ' / 11 g/oradata_dr/ettestdr/admin/udump ".
    *. CONTROL_FILES =("/11g/oradata_dr/ettestdr/controlfiles/standbycontrolfile.) CTL")
    *. Db_name = ettestdr
    *. PROCESS = 150
    *. UNDO_MANAGEMENT = AUTO
    *. UNDO_TABLESPACE = undotbs
    * full = '10.2.0.1.0'
    *. FAL_SERVER = "ETTEST."
    *. FAL_CLIENT = "ETTESTDR."
    *. STANDBY_FILE_MANAGEMENT = 'AUTO '.
    *. LOG_ARCHIVE_DEST_1 =' location = / 11 g/oradata/archives /'
    *. STANDBY_ARCHIVE_DEST = ' / 11 g/oradata_dr/ettestdr/dr_archives/ettestdr.
    *. LOG_ARCHIVE_DEST_2 = "SERVICE = ettestdr'"
    *. LOG_ARCHIVE_DEST_STATE_2 = 'REPORTER '.
    *. DB_FILE_NAME_CONVERT ='/ 11 g/oradata_dr/ettestdr/data files / ',' / 11 g/oradata/admin/data/data files /'
    *. LOG_FILE_NAME_CONVERT ='/ 11 g/oradata_dr/ettestdr/redologs / ',' / 11 newspapers g/oradata/admin/data/files /'

    4. Meanwhile I backed up the database and the same transferd on the location of DR and then I created the standbycontrolfiel using the command on the priamary with login sys server using the command:
    alter database create standby controlfile as ' / path ';
    5. my primary increased using the pfile of said file.
    6.I was also able to put my DR in phase nomount using the pfile above file
    7.i transferred the controlfile to the location appropriate server DR and when I'm putting DR db using:
    alter database base_de_donnees eve of Mount;
    I get the below mentioned error
    SQL > alter database base_de_donnees eve of Mount;
    change the basis of mountain rescue
    *
    ERROR on line 1:
    ORA-01103: the name "ETTEST" in the control of the database file is not "ETTESTDR"
    Please suggest...
    BR
    Sphinx

    Published by: $phinx19 on December 12, 2012 05:29

    Try to change standby init. file:

    DB_NAME=ETTEST
    

    Edited by: P. Forstmann on Dec 12. 2012 14:36

  • A new question on how to enable Flashback Database on the database pending?

    Best practical side says:

    Activate the Flashback Database on the database shall minimize downtime for logical corruption.

    I would like to know where to find the document or everybody already had experience in this topic?

    Also, I would like to know what is the best practice for backup/restore of the database of physical relief?

    Thanks in advance.

    Hello;

    Just an opinion, but I like the book 'Oracle Data Guard 11g Handbook' as the document and the answers to the second question.

    Chapter 12 covers the A to Z of RMAN with Data Guard.

    This book sold me since Flashback Flashback allows a former primary database to be reinstated after a failover with ongoing restoration operation (provided that enough newspaper flashback is available)

    My own experience is I tried a test failover without it and trash my primary test.

    I did a test of simple failover a few weeks ago, here are my notes.

    http://www.Visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.PDF

    Best regards

    mseberg

Maybe you are looking for

  • Unable to Deauthorize all computers

    I need to Deauthorize all computers, but he said: I can only do this once per year, and the sooner that I can do is July29th 2016. Can I request an earlier date?

  • Why is there a PC shared on my Mac?

    Hello. In the finder, under the 'shared' tab, I can see a PC. Name of the PC in the finder is the same name as the name of my home wifi network. When I click on this PC in the finder, it opens a window, and he always says "connection failed". Is some

  • New Apple TV always distorts sound.

    New Apple TV has always distorted sound after 45 to 60 minutes. Cable audio optical is the problem? If so, why Apple does not provide a solution? With more audio systems providing users in this regard, Apple TV will be frustrated.

  • I disabled my own cookies and now I can't help? Windows XP and I use Mozilla Firefox?

    (Inadvertently), I disabled the cookies on my computer. Now I can't get to my Hotmail e-mail account. I went by the "tools/options/life exercise private and whatever he says 'enabled' (everything is checked).» I even restarted my computer, but nothin

  • Windows Mail 'find' works sporadically

    Sometimes Windows Mail 'find' works, but when I use it it will not work unless I reboot my computer and sometimes not even then.  This happens on my computer and my wife.