Multiple Database Users

Dear Experts
I have created 3 database users (SCOTT, X, and Y). SCOTT user has all the database. I wanted to give the full rights to X and Y on the objects of SCOTT, so, I issued the command
SQL>grant all on emp to X;
Connecting X, i have to give schema.table_name to access data in EMP. Is there any way that i can extract data from SCOTT's object without using schema name with table or without creating synonyms.
Regads

user832095 wrote:
I am extremly sorry,
I am creating a duplicate server. The existing server has linux as os and oracle 10g db. All the users are created as database users and they can manipulate data through an application. I have a user dump, so, I restored data and created same users in new database and granted all the priviliges the are found in the existing db server, but I was getting user privileges error. I have checked the existibg server database thoroughly but i did not get sysnonyms there. I wonder how the users and their privileges are being maintained there. The same situation I have seen in Maximo database also.
I am thankfull to my friends in this forum who gave me the valuable solutions. I hope if anybody can help me further
Regards
MASo exactly how did you create your "user dump"?
And exactly How did you "restored data and created same users in new database"?
And exactly what were you doing when you were "getting user privileges error"
And what was the exact error message associated with "user privileges error"?
It's really, really, really difficult (impossible, actually) to help when all you give us are vague descriptions of your interpretation of what you do and how oracle responds. There is no tax on using sqlplus and the fine copy and paste features available with most modern OS products.

Similar Messages

  • Multiple database users, ORM, entity framework, best practices

    Hello everyone!
    You've already helped me several times, however I must ask for an advice once more.
    I was assigned to develop .NET application with Data Access Layer and I've decided to use Oracle Database Software to provide sample data.
    As I'm absolute novice considering creating DAL I'd be grateful if you can examine my plan in terms of security and reliability:
    My database:
    1) I've created database with sample tables and relations between them. All tables belongs to databaseAdmin.
    2) I've created HR and Manager database users and granted them some privileges on certain databaseAdmin's tables. My intention is to reduce access to unnecessary tables. If my application user want to make some changes to Customers table it should be enough to connect to database as HR.
    And now I'd like to map my database using Entity Framework in my application. And that's where I have a problem:
    -If I create Entity Model basing on databaseAdmin tables I get perfect model, however every Entity SQL query would be executed on behalf of databaseAdmin, which breaks my idea of hiding unnecessary tables.
    -If I create Entity Model for HR and Manager users, my models could overlap on tables that both users have access to and no connection between tables would be generated (as from their point of view those tables are just some tables that belong to databaseAdmin)
    Could you help me with this deadlock? Or maybe my assumptions about multiple database users are incorrect? Please, bear in mind I'm a novice.
    I was trying to find a solution in web, and there're tons of data discussing technical aspects of Entity Framework etc., but not so many documents about conceptual model of database.

    hi Michael,
    Thanks for you posting!
    Sorry for I am not totally understanding your issue. Maybe two points need your confirm:
    1. I confuse with the "Service controller"? IS your meaning MVC controller? Or ServiceController(http://www.codeproject.com/Articles/31688/Using-the-ServiceController-in-C-to-stop-and-start
    2.whether  The type of ID in the model is match to the database ? In other words, Is the type of IDin .edmx matched to the database?
    By the way, it seems that this issue is more related to EF. You could post this issue on EF discussion for better support.
    Thanks & Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating user in multiple databases

    Hi All,
    I want to create an user in multiple Databases (100+)
    Could any one can share the script .
    Oracle DB Version - 9.2.0.6,9.2.0.7 & 10.2.0.2
    Os - Hp Unix.
    Kindly help me out from this.
    Thanks,
    Ram.

    895188 wrote:
    Hi
    Thanks a lot for your reply
    I can follow your command but my requirement is to do the same in all 100+ databases which is a pain ful proces, So looking for script to create an user in all databases in one shot.
    You need to connect to each DB; one at a time.
    Realize that "script" is Operating System dependent & you decided not to share your OS with us.
    We had an common server which can able to connect all the databases individually, by using the TNS Entries.
    I am glad you have this since it will be needed to complete your task.

  • 1 user license access multiple database

    Hi all...
    I have a question :
    In SAP B1 8.8, can 1 user license (for 1 physical user) access multiple databases?
    Multiple database is created for Head Office and Branches.
    Since Finance Accounting Manager is centralized at Head Office, so the Manager must have access to multiple databases.
    Can only 1 user license applied to this Finance Accounting Manager?
    Regards,

    Hi Ingrid,
    Finance/Logistic/CRM Limited will perform as professional user license in the multiple db accessing in one server except  the functionality authorization. You must make sure that all the users that use the Finance/Logistic/CRM Limited license have the same user code in the dbs
    JimM
    <ultra - said it once>

  • [ask] Multiple database for a user

    Hi,
    pardon for my very basic question since i'm new in database world. Currently I've been playing with XE and I cannot find a complete documentation on the subject, therefore I venture myself to ask some basic tasks of XE, such as:
    1. Can a user have multiple database (or schema) or only 1?
    2. If it can have multiple database, how can them be viewed?
    3. How can I delete one of them if no 1 is true?
    4. How can I delete a table?
    5. Where can I find a thorough documentation on XE besides tutorial?
    Best Regards,
    Joe

    user11357901 wrote:
    Hi,
    pardon for my very basic question since i'm new in database world. Currently I've been playing with XE and I cannot find a complete documentation on the subject, therefore I venture myself to ask some basic tasks of XE, such as:
    1. Can a user have multiple database (or schema) or only 1?User infact IS a schema , and so schema IS user. They don't own the database;they belong to only one database,although they could
    perform some actions on other databases
    2. If it can have multiple database, how can them be viewed?You can access objects on remote database B with the user from database A by using database links
    3. How can I delete one of them if no 1 is true?N/A
    4. How can I delete a table?If using SQL, then DROP command is the one you want. DELETE command is used to delete row/s from a table, not to delete table
    5. Where can I find a thorough documentation on XE besides tutorial?oracle.tahiti.com would be the best choice
    >
    Best Regards,cheers

  • ITunes setup on a NAS with multiple windows users - how?

    iTunes setup on a NAS with multiple windows users?
    I am very confused on what is the best way to handle this setup for my friends family.  Any help would be appreciated.  Sorry in advance as I know this is a long winded post - I have a feeling this will help others faced with the same issues or questions.
    CURRENT SETUP
    I have three new Windows 7 machines networked (two desktops and one laptop) that have four users on each - as busy family with children who need the computers for homework, projects, games, etc...  The goal of this setup is that any user can log onto any computer and have there documents available to them no matter computer was free to use.  I set this up using the library function in Windows 7 and seems to work pretty well.
    I have put a Buffalo Linkstation NAS on the system as well.  This was going to serve two purposes 1)  run some backup software to protect the computers and 2) consolidate the iTunes content in one place for all users.  There is also an iPad in the home that I should would be better served by accessing the content on the NAS without requiring any of the computers being on.  Dave is thinking about getting some other playback devices like Apple TV so thought a NAS would be a good way to go.
    CURRENT ITUNES SETUP - I have created a new iTunes library on the NAS by holding the SHIFT button down while starting iTunes and pointed to that folder on a Share on the NAS.  There was no music on the system at the time as we are planning to copy this over from an OLD machine that is now not being used.  I have also authorized all the computers and turned on the home sharing feature (although I am not sure what good that does).
    This “shift” button trick seesm to also point the default directory there without point to it in the advanced setup tab of iTunes.
    I then synced one of the iPods with purchased content on it and synced that to the library after asking me to do so before an update.  All the content showed up in the library and was playable - awesome.
    I then logged into each user on each machine (yikes) and installed iTunes  and used the “shift” trick to connect each users iTunes to the database on the NAS.  Everything seems to work - but I have not tested it thoroughly.
    SUMMARY
    3 new Windwos 7 networked machines
    4 identical users on each machine
    1 TB Buffalo linkstation
    iTunes setup with the folder on a SHARE
    all user’s itunes connected to the iTunes folder on the NAS
    all computers authorized with home sharing turned on.
    one iTunes user account signed in on each machine
    multiple iPods and one iPad in the system
    QUESTIONS/CONCERNS
    Is there a better way to do this on a NAS?
    Would home sharing be better in some way?
    I understand the NAS should show up under the shared section in iTunes - I assume that would mean that would mean each user has an iTunes library on their documents?
    I have read that there may be corruption issues if users on the different machines try to access iTunes at the same time.
    Will there be any issues syncing that various iPods with?
    Ugh - sorry for the long post and all the questions.  I am just trying to find the best way to do this.  I wish Apple would put out a best practices document for setups like this.  Thanks in advance.

    This is a user to user support forum. Your fellow users can offer solutions or workarounds based on their experience with the application. If you think it should work differently drop a line to iTunes Feedback.
    For reasons unknown Apple haven't chosen to allow iTunes to be suspended in one profile and active in another. My recollection is that this applies even if each profile has a different library, although it is some time since I've committed a personal test.
    I'm not sure why my suggestion make less sense that your current approach?. As I understand it currently everybody is either signed into their own account when they can do something other than work with iTunes, or they sign into the special iTunes account where they can't access any of their other stuff. You don't have to disable fast user switching. Follow exactly the same steps, but make sure everyone closes iTunes before turning the computer over to another user. Disabling fast user switching helps to enforce that action.
    tt2

  • Need to get data from multiple database instances in a single query

    Hi,
    I need a small favour from you guys. The prob is as follows:
    I need to get name, row_id from table A from schema 1 and gbu_name, name from table B from schema 2 where a.name = b.name. I wrote the query in the following manner:
    SELECT a.name, a.row_id, b.gbu_name
    FROM Schema1.A as a, Schema2.B as b
    Where a.name = b.name
    But this query is not working and the error is like " The table does not exists".
    Please update me how to avoid the error and get the right sort of result.
    Thanks & Regards,
    Debabrata

    Ah, youre actually asking different things.
    In your topic title, you say youre running separate instances
    In your body text, you say you are under different user/schema
    So tell me, do you have more than one database or not? How many entries in your TNS file?
    I would say, for "multiple database instances"
    SELECT
      a.id, b.id
    FROM
      tableA a
      INNER JOIN
      tableB@OTHER_DATABASE_LINK_NAME b  <--NOTE!
      USING(id)And of course you will have to look up CREATE PUBLIC DATABASE LINK sql..
    Message was edited by:
    charred

  • Contained Database Users are now available in Azure SQL Database Update preview

    Contained Database Users should be of particular help for people migrating to Azure SQL Database. At the moment, this is a preview release but you can start testing. Here is the announcement of the
    preview with links to more information.
    New SQL Database public preview with new Standard-tier performance level
    Previously announced in November 2014 and now available for customers to try, the
    new
    public preview of SQL Database improves the compatibility of SQL Server applications for Azure SQL Database. Details of this preview are available on the
    SQL
    Database documentation webpage, including the following key enhancements: easier management of large databases to support heavier workloads with parallel queries
    and online indexing, support for programmability functions like CLR and XML index to support more robust application design, improved monitoring and troubleshooting with XEvents and 100 new Dynamic Management Views (DMV), and more performance in the Premium
    tier.
    To try this preview, please sign up via the Preview
    features webpage. Only SQL Database servers with a mix of one or more Basic, Standard, or Premium (not Web or Business) databases are compatible and eligible to
    upgrade to the preview. Please note that any move of an existing Basic, Standard, or Premium database into this preview is irreversible; we recommend that you create a database copy or leverage test databases on any server enrolled in this preview.
    A new Standard-tier performance level, S3, is also available in this preview which gives you more pricing flexibility between Standard and Premium. S3 will deliver 100 Database Throughput Units (DTU) and all the features available in the Standard tier. Please
    note that S3 will appear on your bill as a multiple of S2 until further notice.
    For more information, please visit the SQL
    Database webpage and the
    Microsoft
    Azure Blog. For a comprehensive look at pricing, please visit the
    SQL
    Database pricing webpage.
    Rick Byham, Microsoft, SQL Server Books Online, Implies no warranty

    Hello Rick
    That is great, one thing I'd like to ask, does it support SSMS,SSDT?
    No sign of that yet, that I’ve seen.....
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Multiple database updates vesus Tansaction

              Hi,
              I need some help from you great minds. Here us what I am trying to accomplish:
              I have a message driven bean which does a multiple update calls to an Oracle database.
              I want to commit all the db updates only at the end (after all update calls execute
              okay) and if there occurs any problem in any of the update calls, I want to rollback
              all the previously successful update calls I have already made. I am using container
              managed transaction via a mdb.
              I tried to use UserTransaciom.setRollbackOnly() call but that did not completely
              help. This call rolled back the message altogether. All I wanted to do is, if
              there occurs any error during a database update, rollback just the database changes
              and just throw away the message. Is there a way I can just rollback the database
              changes? Any suggestions?? please. Thanks
              

    If I understand correctly what you want to do, is the purpose to do some task or run some script in multiple databases on the same server?
    If so, this is done easily by listing the database (sids) in a file and reading the file in a loop statement.
    In my case, I simply create a file on the server called localsids. I keep this in /var/opt/oracle directory.
    Then, in my script, I set:
    SIDFILE='/var/opt/oracle/localsids'
    NEWPASS=`cat $HOME/.xlh/sys`
    # This loop reads through the 'sidlist' and then looks for a password
    # stored in a separate directory for each sid, but if individual
    # directories do not exist, then it uses the standard system password.
    # It then opens a sqlplus session for each sid (as it loops through the
    # sidfile and executes some sql statement(s), or executes a sql script.
    cat $SIDFILE | while read SID
    do
    ORACLE_SID=$SID
    export ORACLE_SID
    echo $SID # this is only for my own verbose purposes
    sqlplus -s system/manager@$SID <<EOF > /tmp/chg_passwd_${SID}.sql
    alter user system identified by $NEWPASS
    alter user sys identified by $NEWPASS
    EOF
    done
    exit
    # In the above example, i am changing the sys and system passwords for all databases listed in the localsids file.
    Hope this helps...
    ji li
    Message was edited by: ji li to simplify the example...
    I have simplified the above example to hardcode the system password into this script, however, normally I would never do this in real practice. This is just as an example to simplify how to run a loop to run a common script or sql statement in each database.

  • Using Single Datasource to Access Multiple Databases

    Hi,
    We would like to know the pros and cons of accessing multiple
    databases through a single datasource, versus accessing each
    database through its own datasource. Our environment includes
    multiple web servers w/ the latest version of ColdFusion MX 7,
    clustered through a load balancer. Each web server has 800+ dsns
    pointing to different SQL databases on the same SQL server. We have
    noticed that the ColdFusion administrator is taking a long time to
    display or verify all datasources and sometimes it even times out.
    Another problem is that sometimes the neo-query file gets corrupted
    (for unknown reasons) which results in the deletion of one, or
    more, or all datasources on the web server.
    Because of the issues above we are researching the
    possibility of removing most of the datasources, and then accessing
    each database through a single bridge datasource. In that regard we
    plan to change our queries by inserting the sql db name and user in
    front of each table in the query such as:
    <cfquery name="query" datasource="single_dsn_name">
    select * from [#dbname#].dbo.tableName
    </cfquery>
    In the example above, obviously #dbname# would be a variable
    that will hold the name of the requested database. The code above
    would similarly apply to queries using, update, insert and join
    words.
    Are there any limitations or negatives from scalability,
    performance, and reliability perspective in implementing the above
    scenario versus having one datasource for each database.
    Also, if there is a better way of accomplishing this, we
    would love to hear about it.

    Here is my opinion, because I work with both schemas. The
    main advantage to use one datasource for all DBs in a SQL Server is
    the simplicity of administration.
    But the main disadvantage is security, because you are using
    a single user to access all DB in a server, you don't have
    isolation, and a user that knows your schema can access data of
    other DBs that he sould not be authorized.
    Another issue is is a user must access 2 differents DB with
    different permissions (a DB only read and the other read/write),
    you'll have to create another datasource, user, etc for it.
    But the decision depends in the enviroment. If you are a
    hosting company, I would use 1 datasource for user or DB. If the
    servers and DBs are of the same company, I could use one datasource
    for each SQL server.
    Best regards

  • Auditing DML actions on multiple databases

    I am using Oracle 10g Database on Solaris .
    I need to audit the complete DML statement issued on a table which exists in multiple schemas(same name with different data from other schemas) in multiple databases ie Consider the table ito be audited is "TAB_A" . This table exists in multiple schemas "USER_A", "USER_B" but as said before only the name remains the same but data is different so they are two different tables. Also there are many databases "DB_A" , "DB_B" which have that table .
    There is a master database which collects information from all these databases through database links . Now this database has a table which gets updated with a username, schema name and database name once a new user is created on the databases DB_A and DB_B . So is there any way I can use this info and automate the auditing so that the DBMS_FGA.ADD_POLICY procedure gets fired when a new user say USER_C is created ? This will not involve any manual involvement in running DBMS_FGA.ADD_POLICY procedure for USER_C.TAB_A

    auditing will be enabled on a specific table which exists in some schemas eg : TAB_A . So the table name along with schema name would be USER_A.TAB_A and USER_B.TAB_A . think so now it is clear
    now the master database contains information about the username , database name . so from this information I should create dbms_fga policy on each database . The table name is constant so it shouldn't be a problem . The point is if a new user is created in any of the databases the policy should be automatically created from the master database without any manual interruption.
    This is what i am trying to do ... let me know if this is possible ?

  • Multiple Database Links

    I have created a database link in Oracle 9i to access the data stored in a remote MSSQL Server machine. Can I create multiple database links in Oracle 9i to access different remote MSSQL Server machines? If yes, please advise how to accomplish this. Thanks.
    SK

    From A, you can query synonym on B linked to table on C. Then grant select on this synonym to user user used for the dblink connection.
    Nicolas.

  • Determining wether to implement on a single database or multiple databases.

    Good Day Mentors,
    Our company will be migrating from 2004B to 8.81. We currently have 2 databases. We wanted to know what are the things to consider before choosing wether to go one or multiple database. We are in F&B. The 2 databases purchase and sell the same items for most of the inventory.
    I've already checked these links:
    [Merge multiple separate companies (databases) into one]
    [Re: Multiple companies in one database vs. multiple databases]
    [Re: Setting up two companies on one database]
    After reading those posts, I've listed these questions(this I'll be asking the users/management):
    1.) Are the 2 databases, 2 business/legal entities?
    2.) Is the Tax files separately for each subsidiary/company?
    3.) Are the reports(P/L, balance sheet, etc) usually consolidated?
    4.) Is it ok that the people can see all the BP's, GL accounts, Pricelists etc?
    Are there till things I need to ask the management in order to make a wise decision on the matter?
    Are there still pros/cons I need to raise up?
    Thanks in advance!
    Sean Yu

    Hello,
    1.) Are the 2 databases, 2 business/legal entities?
    It will 2 business /Legal entities when you have registered your company in two different tax registration no.(PAN)
    2.) Is the Tax files separately for each subsidiary/company?
    Totally depend on how you registered your company in tax department .means if you have saparate tax reg no then it might be.
    3.) Are the reports(P/L, balance sheet, etc) usually consolidated?
    this option in optional it may be or may not be .
    4.) Is it ok that the people can see all the BP's, GL accounts, Pricelists etc?
    No, because data will very huge then user become confuse at the time of data entry(but we have solution for same without SDK)
    Means totally depend that both company register in same tax no or two different tax no.
    Thanks
    Manvendra Singh Niranjan

  • Application that connects to multiple databases.

    I am developing an application that performs many task, but one in particular is connecting to multiple databases and creating user accounts in each all with the push of a single button. I have tried putting connect statements in the trigger code but I don't get the desired results.
    How would I get my application to switch database connections while in execution?
    Please reply to the forum, or email me @ [email protected]
    Thank you.
    Travis

    Hi
    The only possible way which I could find for your requirement is that of DB Links. Establish DataBase Links among the multible databases, with which you want to work in one session. Peform all your actions through the DB Links.

  • Pros and cons for using single/multiple database

    hi
    could anyone tell me in which senario we can use multiple databases and advantages and disadvantages using multiple databases over single database (with different tablespace)
    thaks in advance
    hari

    depending on your situation you can probably think of different answers. You ask for a 'general' rule of thumb... well, some things that pop into my mind:
    - different usage by applications. e.g. you have a transactional application storing and modifying data and you also want to do analytics. You might want to build a seperate database/datawarehouse that you can use for analytics. by splitting it up you can tune both databases to work best with the application using it.
    - sensitive data and many different users. e.g. the marketing department does not need to have access to the finance department's data (salaries, etc). give each department a separate database and only load the data needed/give access to the data needed.
    Just some thoughts, you can think of more when confronted with a certain situation.
    Lennert

Maybe you are looking for

  • Questions on init.ora file

    Hi, I have some questions on init.ora file. While checking the init file in my system i found that it defines a spfile in a non default location. The parameter names are like 1) db1.__db_cache_size 2) *._kgl_large_heap_warning_threshold 3) *.sga_targ

  • TS3274 How do I move icons from one screen to another?

    How do I move icons from one screen to another. 

  • Doubt in procedure

    i created a procedure but i am getting an error while i am executing it.. wrong number or types of arguments in call to 'new_book' pl/sql statement ignored this is what it is displaying while i am executing the procedure.. plz help regarding this.. t

  • Using external speakers

    Why won't older external speakers work on my computer?

  • Delete P payment method

    Hi, I have faced problems when trying to delete payment method P from Russia country in FBZP as it is not needed. The problem is with one of the company codes where i should delete this payment method before i will delete it on country level. For 4 c