Find users in the database

I would like to know the users
users in the database A that were not in the database B
Both the database in the same host. created Db link between two database

user8680248 wrote:
I would like to know the users
users in the database A that were not in the database B
Both the database in the same host. created Db link between two database
SELECT username FROM dba_users
minus
SELECT username FROM dba_users@db_link

Similar Messages

  • Can I upload a simple iPhone App that all it does is direct the User to a Filemaker Pro URL   fmp://~filename.fmp?$VariableName=Value  This launches Filemaker Go and directs the user to the Database Hosted online   Right now there is no app store for

    Can I upload a simple iPhone App that all it does is direct the User to a Filemaker Pro URL   fmp://~filename.fmp?$VariableName=Value  This launches Filemaker Go and directs the user to the Database Hosted online
    Right now there is no app store for Filemaker Go.   Filemaker Forgot about us.
    So I want to create a simple native iPhone App that all it does
    is launch
    fmp://~/filename.fmp12?$VariableName=value
    This URL will launch the Filemaker Go App
    Filemaker Go is a app that the user will have to have
    downloaded already on the device..
    The Simple Native app will launch the Filemaker Go.
    The fmp  URL has the information where the Filemaker Pro database is hosted
    and get  the user where they need to be..
    Help Me please
    iPhone 5s, iOS 8.1.3

    That would be software. And, you said "upload." That's "uploading software." Why do you question what you stated?
    I don't know where you even want to upload this software. The only way it can be downloaded to a device is through the iTunes store. Do you even know what you want to do?

  • Get all the user in the database

    guys what is the commmand to get all the valid user for the database.
    thx m

    assume that I have logged into Oracle database (as a non administrator),and now by chance I forget my user name and password,then what is the select statement which tell me my user name and password with which I logged into the database in the first place.
    Note : select sys_context ('userenv', 'session_user') from dual gives me the user name but how to get the password.
    If you forget your user name, you have to talk to your administrator about it(I am sure they will keep some kind of records). If you forget your password, you could ask your administrator to reset it.
    Password is stored in encrypted format in the database.
    You may not be able to use it. For example, the real password could be 'ABCD' and the encypted format stored in the database could be '54395C04DCA3CA40' (column PASSWORD of data dictionary view 'DBA_USERS'). I am not aware of any algorithm that would be able to retrieve your actual password from the encrypted format stored in the database.

  • Script to Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    You can use an external table :
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    USERNAME
    USER1
    USER2
    USER3
    SYS@db102 SQL> !cat users_to_drop.txt
    USER1
    USER2
    USER3
    SYS@db102 SQL> create table test.users_to_drop
      2  (
      3     userx   char(30)
      4  )
      5    organization external
      6  ( type oracle_loader
      7    default directory work
      8    access parameters
      9     ( records delimited by newline
    10     )
    11     location ('users_to_drop.txt')
    12  )
    SYS@db102 SQL> /
    Table created.
    SYS@db102 SQL> begin
      2     for U in (select userx from test.users_to_drop) loop
      3             dbms_output.put_line('Dropping '||U.userx);
      4             execute immediate 'drop user '||U.userx||' cascade';
      5     end loop;
      6  end;
    SYS@db102 SQL> /
    Dropping USER1
    Dropping USER2
    Dropping USER3
    PL/SQL procedure successfully completed.
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    no rows selected
    SYS@db102 SQL>

  • Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    I have written a script but getting a error.Can anyone help :-
    create or replace PROCEDURE drop_user
    is
    v_filehandle utl_file.file_type;
    v_user VARCHAR2(20);
    lv1 VARCHAR2(200);
    err_code VARCHAR2(20);
    err_msg VARCHAR2(250);
    BEGIN
    v_filehandle:=utl_file.fopen('/tmp','user_list.lst','R');
    LOOP
    BEGIN
    utl_file.get_line(v_filehandle,v_user);
    lv1:='drop user'|| v_user;
    execute immediate lv1;
    EXCEPTION
    WHEN OTHERS THEN
    err_code := SQLCODE;
         err_msg := substr(SQLERRM, 1, 200);
         dbms_output.put_line(err_code|| ':-' || err_msg);
    END;
    END LOOP;
    utl_file.fclose(v_filehandle);
    END DROP_USER;
    ERROR :
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "SYS.UTL_FILE", line 98
    ORA-06512: at "SYS.UTL_FILE", line 157
    ORA-06512: at "TOM.DROP_USER", line 9
    ORA-06512: at line 1

  • How to find out that the database table is empty

    Hello all,
    How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * )  looks to me as not the best way.
    Kind regards
    Radim Benek
    Moderator message: FAQ, please search for previous discussions of similar topics.
    example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Aug 11, 2011 5:06 PM

    Hi,
    One approach is:
    check lt_mytable is initial.
    This will be true if there are no lines.
    Another:
    describe table lt_mytable lines lv_count
    if lv_count = 0.
    "Empty
    Thanks.
    Anitha a

  • Finding info about the database

    I need to write a program to find  out which database server is used, its ip address, its version and the databases within the server. How can i do that? Is there a config file or something similar which has all the information. Are there any APIs which i can use?
    Please help me out here.

    Good point Eric,
    well, in that case he is busted
    But at least he is asking in the Oracle Forum, and depending on the trans.log output, he could open a switchcase with
    sqlplus ...
    xsql ...
    dbaccess ...
    Whatever the other DBs have as query tools
    Volker
    P.S.:
    wait ... wasn't there a "tp getdbinfo ..." ? I'm @ HOME now, so no system to test... Can somebody fill in ?
    Edited by: Volker Borowski on Aug 24, 2011 9:01 PM

  • How to find a specific activity done by a particular user in the database

    How to find who (a specific user) does what (activities) on a specific date/time to certain Objects in a database instance. If similar posting and/or resources are available, please advise.
    Thanks.

    I have got the same problem. My operation steps is below:
    1. create one dictory
    mkdir /usr/local/dbs
    chown oracle:oinstall /usr/local/dbs
    2. modify the paramter
    alter system set utl_file_dir='/usr/local/dbs' scope=spfile;
    3. restart database
    4. create the logmnr file:
    BEGIN
    dbms_logmnr_d.build(
    dictionary_filename => 'logminer_dict.dat',
    dictionary_location => '/usr/local/dbs');
    END;
    5. add the online redo log file:
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.new,logfilename =>'/u01/app/oracle/oradata/orcl/redo01.log');
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.addfile,logfilename =>'/u01/app/oracle/oradata/orcl/redo02.log');
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.addfile,logfilename =>'/u01/app/oracle/oradata/orcl/redo03.log');
    6. start logmnr
    BEGIN
    dbms_logmnr.start_logmnr(
    dictfilename => '/usr/local/dbs/logminer_dict.dat');
    END;
    7. check the result
    select sql_redo FROM v$logmnr_contents;
    I got error message at the step:
    ORA-01306:dbms_logmnr.start_logmnr() must be invoked before selecting from v$logmnr_contents
    Could anyone help about this?

  • Find User Created the table Entry

    Hi All,
    This is my scenario , I've one Custom Table ztable which is there in the quality system and entries will be made in the table and it would be transported to the production system. Now My problem is this I've received one wrong entry in the table because of that i'm getting short dump in one of my application. Is there anyway to find out who has made the entries in the table and transported it. Table doesn't have entries like created by or created date like what we have in standard tables. Considered that tranport would be within a month.Your Solution is appreciated.
    Note : This is regarding the table contents not table.

    Hi Anand,
      Do the below.
    First go to Se16 and give table E071 and in the 
    selection  screen give Object = 'TABU' and Obj_Name
    = your Ztable name. It will give you all the
    trasport requests which are used for transporting table
    contents of you Z table. Then take the latest request
    and go to table E070  and give the request and check
    the entries, it will give you who created the request
    and when it is trasported like deatils.
    Hope this will help you , just give atry. But you will definitly know who tranported the table contents, it will give you the user id.
    Thanks & Regards,
    Siri.
    Message was edited by: Srilatha T

  • Creating a new user in the same database

    I have a user in my database who owns all the objects of application.This user has sysdba privilege.
    I want to create a user(schema) in the same database which should also contain exactly the same objects.
    But at the same time the newly created user should not have sysdba privilege.
    What would be the best possible way to do this?
    Can I use expdp/impdp?If yes which options should I use for expdp and impdp?

    Hello,
    Can I use expdp/impdp?If yes which options should I use for expdp and impdp?After exporting the source Schema (with Datapump), you may create a User on the Database with specific Tablespace and Roles / Privileges (without the DBA role).
    Then, with the Parameter REMAP_SCHEMA=source_schema:target_schema, you may Import with Datapump the exported Objects into the User/Schema newly created:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/dp_import.htm#SUTIL927
    Hope this help.
    Best regards,
    Jean-Valentin

  • Where can i find the database?

    im using the discovery server now. and i need to update some data in. however i could not find where is the database store and how i can edit/add/update it. please advise.

    Hi
    Can you explain your problem briefly . and one more thing  what is discovery server ??
    Thanks
    Ankit

  • ORA -18808;Cannot find OUTLN schema using Database Link

    Hi,
    I have to access a database using a database link. When I try to do so I get the message:
    ORA -18808:cannot find OUTLN schema
    The OUTLN schema really does'nt exist at the target database, but I don't get the message when connecting with the same user outside the database link.
    I am trying to avoid to ask them to recreate the schema, since I am the only one that needs the database link working.
    Is there any way I can access the database with the database link without messing with the target database?
    Thanks in advance for any help.

    The error number returned by that error does not seem to be correct. Below is the correct error number:
    ORA-18008 cannot find OUTLN schema
    Cause: The database creation script that creates this schema must not have been executed.
    Action: Review the log files to see what happened when the database was created.
    How is the DB link defined to connect as?

  • No users available ; no database client tool

    Hi,
    during a system copy we are stuck due to the fact that we can not logon to the 4.6C system.  SAP is up-and-running without errors.
    The database runs on the IBM Mainframe with zOS with DB V8. The SAP application server runs on AIX. Since it is a older version it runs with the ICLI-client as interface for connection between SAP and DB2; not DB2Connect.
    The problems are multiple
    we can not apply a new saplicense to the system (not even a temp license), because we get saplicense connection errors.
    SAPLICENSE (Release 46D) ERROR ***
        ERROR:   Creation of license table failed
        DETAILS: DbSlExecute failed with return code 107
    DSNT408I SQLCODE = -204, ERROR:  SAPLOD IS AN UNDEFINED NAME
    DSNT418I SQLSTATE   = 42704 SQLSTATE RETURN CODE
    DSNT415I SQLERRP    = DSNXISUB SQL PROCEDURE DETECTING ERROR
    DSNT416I SQLERRD    = 40  0  0  -1  0  0 SQL DIAGNOSTIC INF ...
    We have no high privileged users on the system (they now can not login, because of license problems). Furthermore no password of SAPStar.
    A way to go would be to delete the sapstar-user in the database. The problem is that we can not find the tool to connect to the database. This installation works with the ICLI-client, so if we use DB2Connect (db2) we also get the message that ICLI-server is use. So connecting here is not possible.
    db2 => connect to T67 user t67adm
    Enter current password for t67adm:
    SQL30081N  A communication error has been detected.  Communication protocol
    being used: "TCP/IP".  Communication API being used: "SOCKETS".  Location
    where the error was detected: "10.96.18.123".  Communication function
    detecting the error: "recv".  Protocol specific error code(s): "73", "*", "0".
    SQLSTATE=08001
    How can we logon to the system? Is there ICLI-client tool (besides DB2Connect) to execute the SQL-statement to delete the sapstar-user?
    Or is there any other way?
    Please help requested. Thanks in advance.
    best regards,
    Paul Geraedts

    Paul
    How did you copy the system?
    Will the SAP instance start? "sapstart"
    You can get into DB from the SYSTEM Z side using spufi and DB2 commands.
    Find a DBA they should be able to get information .
    The first thing I see strange is
    [code]
    DSNT408I SQLCODE = -204, ERROR: SAPLOD IS AN UNDEFINED NAME
    [/code]
    If really did copy the table should be there.
    from UNIX appserver sidadm run saplicense -get  does this command work?

  • Error when I create the database

    I install the peopletools 8.49 for Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 and my operating system is Microsoft Windows Server 2003 Enterprise Edition Server Pack 1, v.1023.
    When I have installed the peopletools and the database, I modify the scripts in <PS_HOME>\scripts\nt and then change to <PS_HOME>\setup\PsMpDbInstall and double click setup.exe to run the database configuration wizard. All of the scripts are running correct, but the Data Mover is error. So I run the Data Mover manually. I create Data Mover import scripts and run it. It’s ok. Then I check the logs. I find the follow error:
    psadmin.log:
    ALTER TABLE SQLPLUS_PRODUCT_PROFILE ADD (LONG_VALUE LONG)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    psdmtx.log:
    PSDMTX Error: signon
    verifyToolsVer.log:
    select TOOLSREL from PSSTATUS *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    sqlnet.log:
    Fatal NI connect error 12557, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=cs.lab.net)(PORT=1521))(CONNECT_DATA=(SID=PSDB)(CID=(PROGRAM=C:\pt\bin\client\winx86\psdmtx.exe)(HOST=CS)(USER=Administrator))))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.1.0.5.0 - Production
    Time: 19-MAY-2009 15:33:27
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12557
    TNS-12557: TNS:protocol adapter not loadable
    ns secondary err code: 12560
    nt main err code: 527
    TNS-00527: Protocol Adapter not loadable
    nt secondary err code: 0
    nt OS err code: 0
    Then I run version application engine program:
    C:\Documents and Settings\Administrator>C:\pt\bin\client\winx86\psae.exe -CD PSD
    B -CT ORACLE -CO SYSADM -CP SYSADM -R INSTALL -AI VERSION
    Message Set Number: 0
    Message Number: 0
    Message Reason: Invalid User ID and password for signon. (0,0)
    Error in sign on
    PSDB: database name
    SYSADM: peoplesoft owner id
    How can I resolve it?

    I create the database manually too. The errors are the same. I can login in data mover by SYSADM user or people user and the database and listener is running. However, I run version application engine program:
    C:\Documents and Settings\Administrator>C:\pt\bin\client\winx86\psae.exe -CD PSDB -CT ORACLE -CO SYSADM -CP SYSADM -R INSTALL -AI VERSION
    Message Set Number: 0
    Message Number: 0
    Message Reason: Invalid User ID and password for signon. (0,0)
    Error in sign on
    I change the user to try, it’s the same.
    Edited by: hzg on May 21, 2009 9:38 AM

  • Query to know a user is a Database User or a Windows User

    Hi All,
    Can any one help me with the query to find out the given user name is a database user or a windows user in oracle 10g/11g?
    Thanks in advance
    MK.

    ManuK wrote:
    I think i may not express what i really need.
    I have a set of users in the database. Some are database users and some are external users.
    I'm a bit more confused. Do you mean with database users, the schema users, the owners of the tables?
    I was trying to find out can i take out external users using the query
    SELECT username FROM dba_users where password ='EXTERNAL';
    The PASSWORD column of DBA_USERS held in older releases a hashed value of the password of the/a database user.
    There is no such possibility of getting a distinction of users here.
    and database users using the query
    SELECT username FROM dba_users where password IS NULL;
    In the new releases this value is always NULL
    What you really need is what we described in earliers posts.
    Or you need to make clear by what you mean with WINDOWS USERS.
    Are this the USERS connecting from a WINDOWS CLIENT ( a PC/Notebook) to a database account in your database?
    Then look them up in V$SESSION ( OSUSER column )
    Or do you need to find the SCHEMA users that these WINDOWS users connnect to ( USERNAME column of V$SESSION )
    Regards,
    FJFranken

Maybe you are looking for

  • If statement is not validating properly in JSP

    Actually i'm new to Java.. The problem is when i take the parameter from another file which is an empty text box and i submit that. In the next jsp file i'am taking this value using getParameter("xxxx"). if i send the empty or some value to this para

  • How to Disable CheckBox for a Particular Condition

    Hi All, In my application, iam using one table having 5rows , with checkboxes, based on one condition i want to  make few checkboxes as default disable in the same table, and some checkboxes i shud make it as enable, so experts please help me how to

  • Down Payment Request F-47. ( Advance payment against PO )

    Hi all, I am creating down payment request T-code F-47 w.r.t. Purchase order number, e.g. PO landed Value is INR 100.00, but system is allowing to create Down payment request of amount more than INR 100.00. Also after creating DPR w.r.t. Purchase ord

  • How do I create a global text field so the value will repeat on other pages?

    This is the first time I've used Adobe Livecycle Designer ES2, My experience stems from Acrobat Pro 8. I have the following fields: 1. Date Field (date formatted) 2. Name (text formatted) 3. Chart # (numeric formatted) 4. Date of Birth (date formatte

  • GRUB Cannot Find chainload

    I am currently trying to dual boot Windows 8 and Arch Linux. I have Windows 8 installed on my first boot device and Arch installed as per the Beginner's Wiki to my second boot device (both SSD's, sdb and sdc, respectively). lsblk: sda [RAID controlle