User VS Schema

Hi,
I have a database where there is only one schema, say SCHEMA1, to which the application connects.
Now, I am to create three more users, user1, user2, and user3, who must be able to connect to SCHEMA1.
User1:
Must have read, write, drop and all other relevant privileges on SCHEMA1. All priveleges that the owner of SCHEMA1 has.
User2 and User3:
Must have only read access to all objects in the schema.
Users 1, 2, and 3 must be audited.
Is there a way other than granting privileges on each of the object in SCHEMA1 recursively? Something like granting read/write privileges on the schema as a whole?
Also, any such statement as CREATE TABLE/CREATE VIEW/CREATE INDEX/... should actually create the object in SCHEMA1 and not in the schema associated with USER1.
Thanks,
Aswin.

ice_cold_aswin wrote:
Hi,
I have a database where there is only one schema, say SCHEMA1, to which the application connects.
Now, I am to create three more users, user1, user2, and user3, who must be able to connect to SCHEMA1.No, they don't "connect to" schema1. They connect as themselves and are granted minimal privileges to selected objects in schema1.
>
User1:
Must have read, write, drop and all other relevant privileges on SCHEMA1. All priveleges that the owner of SCHEMA1 has.If you give them create/alter/drop schema1 objects, you are on the fast-track to DBA hell.
>
User2 and User3:
Must have only read access to all objects in the schema.
So create a role, grant only SELECT to that role (GRANT SELECT ON SCHEMA1.TABLE1 TO MYROLE) and grant that role to user2 and user3
Users 1, 2, and 3 must be audited.
So turn on the necessary auditing. That is a totally separate function.
Is there a way other than granting privileges on each of the object in SCHEMA1 recursively? Something like granting read/write privileges on the schema as a whole?
What would be recursive? Grant the necessary privileges to a role. Grant the role to the necessary users.
Also, any such statement as CREATE TABLE/CREATE VIEW/CREATE INDEX/... should actually create the object in SCHEMA1 and not in the schema associated with USER1.
Again, user1 absolutely should not be allowed to execute DDL against another schema. In fact, I'd question if USER1 should be allowed to execute DDL at all. If you think it is necessary for your application, I'd question the basic assumptions of the application design.
The objects (tables, etc) needed by the application should belong to a schema created for that sole purpose. Since a schema is the collection of objects belonging to a user (and thus the common confusion between the concept of "user" vs. "schema"), the user created to own the application schema is usually locked. No reason for anyone to actually connect to the database with those credentials. User accounts typically don't actually own any objects. They are granted CREATE SESSION and whatever other minimal privs needed to access the objects owned by the application schema.
Thanks,
Aswin.

Similar Messages

  • Privilege to allow a user to create a view in another user's schema

    Hello,
    I need to allow a user to create a view in another user's schema.
    Say, to connect as USER_A and run statement: 'create view USER_B_SCHEMA.myview as select...'
    Is there any way to accomplish that without granting USER_A privilege to CREATE ANY VIEW? I want to keep USER_A at the lowest profile possible.
    Thanks!

    You have the option to create an stored procedure, here a test case (no optimized, no bug free):
    SYS@orcl > create user sp_owner identified by sp_owner;
    SYS@orcl > grant create any view to sp_owner;
    SYS@orcl> create procedure sp_owner.create_view (
      2  view_name varchar2, view_sql varchar2 ) is
      3  begin
      4    execute immediate 'create view '||view_name||' as '||view_sql;
      5  end;
      6  /
    Procedure created.
    SYS@orcl > create user test identified by test;
    SYS@orcl > grant create session to test;
    SYS@orcl > grant execute on sp_owner.create_view to test;
    TEST@orcl> execute sp_owner.create_view('scott.emp_vw','select * from scott.emp')
    PL/SQL procedure successfully completed.HTH
    Enrique
    PS. If your problem was solved, consider marking the question as answered.

  • How to define user defined schema in LDAP

    Hi guys,
    I have created user defined fields in OIM through design console.
    Could any one please help me in writing user defined schema in LDAP with the fileds created in OIM.
    Thanks,
    divya

    Hi Divya
    I'm a little confused about what you're asking. Does the custom schema already exist within your target LDAP server? Are you trying to work out how to pass custom attribute values through as part of an OIM provisioning operation? Which particular LDAP Server and Connector are you using?
    Or are you perhaps asking how to actually create a user-defined schema extension within the LDAP directory? In this case, that will completely depend on which LDAP Server implementation you're using and you should probably refer to the product docs for that product.
    Hope this helps
    Cheers
    Rob

  • CREATE/DROP synonyms in another user's schema without ANY privilege

    What's the best way to enable a user to create/drop synonyms in another user's schema without doing any of the following?:
    1) Granting CREATE/DROP ANY SYNONYM or CREATE/DROP PUBLIC SYNONYM to the synonym creator.
    2) Logging in as the user that will own the synonym to create the synonym.
    * Although option #2 might be ideal, it would require reworking a lot of code in our environment.
    I thought about creating a stored procedure in the syn-owner's schema that issues the "CREATE SYNONYM" DDL command and then granting EXECUTE on this proc to the syn-creator -- but, it's my understanding that it's best to avoid putting DDL inside stored code.
    Any ideas?
    Oracle version is 10.2.0.4

    DBA should recognize"should" is the operative word here :)
    One clarification: the user from which the DBA's are planning to revoke the "ANY" privs is an account used internally by one of our ETL tools -- not a developer account. In fact, only the ETL tool itself and the DBA's can log into the account in TST/PRD (developers can log in with it in DEV). Even so, the DBA's still want to revoke "ANY" privs from ALL non-DBA accounts in ALL databases (including DEV). I kind of think that this is overkill, but then again, I don't make the rules here!
    Anyhow, it seems that what we need here is the insight of a political scientist rather than that of a DBA. (not that your perspective is not valued!!)
    Seems that I'll be going back to the drawing board...
    Thanks for your help.

  • How to refresh user level schema in apps

    Guys.
    how to refresh user level schema in oracle apps, My DB is 10g and apps version is 11.5.10.2 and OS: HP UX, Can any one give me some detail explanation.
    Thanks

    I would recommend Datapump over Export/Import because it is faster and allows you to restart the job in case it failed.
    In addition to Export/Import/Datapump, you can use Transportable Tablespaces with RMAN.
    Creating Transportable Tablespace Sets from Backup with RMAN
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/ontbltrn.htm#CACDBIHC
    Note: 371556.1 - How move tablespaces across platforms using Transportable Tablespaces with RMAN
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=371556.1

  • Can i drop the connection user and schema used for Accociate repository

    Hi
    I have created a connection , user and schema and Associated repository to it then migrated a database from diffrent product. to oracle
    using the above mentioned connection, user ,schema and asscociated repositroy.
    11g XE.
    can i delete it after the migration.
    yours sincerely.

    Yes you can !. Permission to drop those artifacts is granted except the target schema where the converted objects are. The migration repository user/connection can be dropped.

  • Move users and schemas from one instance to another

    Hi, I'm starting out in a DBA position.
    My task at the moment is to move users and schemas from one instance to another.
    We're using 9.2.0.7.
    I have concluded that the following steps are necessary to move users and schemas from one instance to another :
    1. Create the needed tablespaces.
    2. Create the users that exist in the source instance
    3. Use exp to do a full export
    4. Use imp to re-create the schemas from the output file created by exp in step 3
    Am I missing anything ?
    Thanks,
    Gabriel

    3. Use exp to do a full exportInstead of doing a FULL export just export the users you want to move and imp that in other database using FROMUSER & TOUSER parameter.
    Daljit Singh

  • To find out which user is schema

    Hi
    All,
    Do you have any idea to find out which user is schema ? (example : any sql query)
    Thanks,
    Vishal

    It's quite unlikely that I would consider an ID that can not connect as being a user. Therefore:
    Schema has objects
    User has CREATE SESSION priv
    Schema & User has objects & CREATE SESSION priv
    Both take use sys.user$.user# so one could view them as different aspects of the same beast. For DBA_USERS the whole key is from sys.user$.user#, whereas for DBA_OBJECTS the sys.user$.user# is a reference for part of the key.
    A schema is simply a collection of objects with a specific namespace. Oracle, for some reason, decided to make the namespace for schemas match the namespace for userids. (I suspect it was to allow us an opportunity to have this kind of discussion.)
    Howard has a discussion that is far superior to the above. I hope we can cajole him to post it.

  • Storing a user's schema in external disks like Zip disks

    Hi,
    We are having Oracle 8i Personal edition on a Win2k machine. Multiple users want to access the database. Now we want to have a single user id for all the users. This creates a problem with regards to security of their data.
    So, is it possible to store a user's schema in external medias like Zip disks in a way that the user can work & save their data in Zip disks ?? If so, how can we do that ??
    Thanks,
    Chethan

    Great <<bump>> question...!

  • Why are BC objects created in user's schema

    Server = Sun Sparc SunOS 5.8, Oracle 8.1.7.4 SID
    Client = Windows 2000, Oracle 9iDS (v9.0.2 w/Jdeveloper v9.0.3)
    Network = 100MB TCP/IP
    I have a schema with relatively large (in my mind) tables master = 225,000 records; detail = 1,200,000 records.
    I've used Jdeveloper 9i to create a business components (Java based) view of these tables.
    When I execute the view (query) and request the last record of the master table, this action takes approximately 1 hr and 40 minutes to accomplish.
    The database is in archive mode.
    The redo logs (3) on the database were 500 KB files (the default created by the DBCA). I was seeing archive files created on the order of one every 10 seconds. I increased the logfiles to be 200 MB and now appear to be getting archives once every 10 minutes.
    I've tracked it down to something taking place in the connected user's tablespace during the query.
    I created a separate tablespace (with it's own temporary tablespace) for my test user. If I did not grant unlimited tablespace to this user, the query failed because the user did not have privilege on the tablespace.
    When I granted unlimited tablespace (is there no middle ground??), the tablespace grew to 290 MB from 128 KB. After disconnecting from the query (quitting the application) the tablespace remained at 290 MB. Upon restarting the query, the used tablespace initially shrunk back to 650KB and then grew again to 290 MB. The temporary tablespace never changed or seemed to be accessed. Both times the query took about1 hr and 40 minutes
    9 objects were created in the users schema, 3 tables, 4 indexes and 2 LOBs.
    My question is why these thing s need to be created for tables that are already indexed and why they would not stay populated for quick reuse. If every one of my users create and populate these tables and indexes for each query session, Ill soon run out of disk space, to say nothing about the ridiculously poor performance.
    Have I made some basic error in the creation of my business components that cause this condition?

    It will spew out a whole lot of diagnostic output. Copy and post that diag and let me have a look at it.Here goes ...... and guess what .... this actually worked, there was no tables created in the user schema and the query only took about 3 or 4 minutes. Something quirky in the JDeveloper / tester way of doing business ???
    [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [01] CommonMessageBundle (language base) being initialized
    [02] Stringmanager using default locale: 'null'
    [03] BC4J Property jbo.maxpoolcookieage='-1' -->(MetaObjectManager) from System Default
    [04] Loading 5.0 IDE classes
    [05] BC4J Property jbo.maxpoolcookieage='-1' -->(MetaObjectManager) from System Default
    [06] BC4J Property jbo.maxpoolcookieage='-1' -->(MetaObjectManager) from System Default
    [07] Creating a new pool resource
    [08] BC4JDeployPlatform: LOCAL
    [09] Propertymanager: searching for file and system based properties
    [10] {{ begin Loading BC4J properties
    [11] -----------------------------------------------------------
    [12] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
    [13] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
    [14] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
    [15] Skipping empty Property ConnectionMode from System Default
    [16] Skipping empty Property HostName from System Default
    [17] Skipping empty Property ConnectionPort from System Default
    [18] BC4J Property jbo.locking.mode='pessimistic' -->(MetaObjectManager) from System Default
    [19] Skipping empty Property ApplicationPath from System Default
    [20] BC4J Property AppModuleJndiName='ctf.database.gpl.bc.BcModule' -->(SessionImpl) from Client Environment
    [21] Skipping empty Property java.naming.security.principal from System Default
    [22] Skipping empty Property java.naming.security.credentials from System Default
    [23] Skipping empty Property jbo.user.principal from System Default
    [24] Skipping empty Property jbo.object.marshaller from System Default
    [25] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Property
    [26] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
    [27] BC4J Property jbo.pers.max.active.nodes='30' -->(SessionImpl) from System Default
    [28] Skipping empty Property jbo.pcoll.mgr from System Default
    [29] BC4J Property jbo.txn_table_name='PS_TXN' -->(SessionImpl) from System Default
    [30] BC4J Property jbo.txn_seq_name='PS_TXN_seq' -->(SessionImpl) from System Default
    [31] BC4J Property jbo.control_table_name='PCOLL_CONTROL' -->(MetaObjectManager) from System Default
    [32] BC4J Property jbo.stringmanager.factory.class='use_default' -->(SessionImpl) from System Default
    [33] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
    [34] BC4J Property jbo.323.compatible='false' -->(MetaObjectManager) from System Default
    [35] Skipping empty Property JBODynamicObjectsPackage from System Default
    [36] BC4J Property MetaObjectContextFactory='oracle.jbo.mom.xml.DefaultMomContextFactory' -->(MetaObjectManager) from System Default
    [37] BC4J Property MetaObjectContext='oracle.jbo.mom.xml.XMLContextImpl' -->(MetaObjectManager) from System Default
    [38] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
    [39] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [40] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
    [41] Skipping empty Property HandleName from System Default
    [42] Skipping empty Property Factory-Substitution-List from System Default
    [43] BC4J Property jbo.project='PM_BC' -->(MetaObjectManager) from Client Environment
    [44] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
    [45] BC4J Property jbo.dofailover='true' -->(MetaObjectManager) from System Default
    [46] BC4J Property jbo.doconnectionpooling='false' -->(MetaObjectManager) from System Default
    [47] BC4J Property jbo.recyclethreshold='10' -->(MetaObjectManager) from System Default
    [48] BC4J Property jbo.ampool.dynamicjdbccredentials='true' -->(MetaObjectManager) from System Default
    [49] BC4J Property jbo.ampool.resetnontransactionalstate='true' -->(SessionImpl) from System Default
    [50] BC4J Property jbo.ampool.sessioncookiefactoryclass='oracle.jbo.common.ampool.DefaultSessionCookieFactory' -->(MetaObjectManager) from System Default
    [51] BC4J Property jbo.ampool.connectionstrategyclass='oracle.jbo.common.ampool.DefaultConnectionStrategy' -->(MetaObjectManager) from System Default
    [52] BC4J Property jbo.ampool.maxpoolsize='2147483647' -->(MetaObjectManager) from System Default
    [53] BC4J Property jbo.ampool.initpoolsize='0' -->(MetaObjectManager) from System Default
    [54] BC4J Property jbo.ampool.monitorsleepinterval='600000' -->(MetaObjectManager) from System Default
    [55] BC4J Property jbo.ampool.minavailablesize='5' -->(MetaObjectManager) from System Default
    [56] BC4J Property jbo.ampool.maxavailablesize='25' -->(MetaObjectManager) from System Default
    [57] BC4J Property jbo.ampool.maxinactiveage='600000' -->(MetaObjectManager) from System Default
    [58] BC4J Property jbo.passivationstore='null' -->(MetaObjectManager) from System Default
    [59] BC4J Property RELEASE_MODE='Stateful' -->(MetaObjectManager) from System Default
    [60] BC4J Property jbo.maxpoolcookieage='-1' -->(MetaObjectManager) from System Default
    [61] BC4J Property PoolClassName='oracle.jbo.common.ampool.ApplicationPoolImpl'-->(MetaObjectManager) from System Default
    [62] BC4J Property jbo.maxpoolsize='2147483647' -->(MetaObjectManager) from System Default
    [63] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
    [64] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
    [65] BC4J Property jbo.poolmonitorsleepinterval='600000' -->(MetaObjectManager) from System Default
    [66] BC4J Property jbo.poolminavailablesize='5' -->(MetaObjectManager) from System Default
    [67] BC4J Property jbo.poolmaxavailablesize='25' -->(MetaObjectManager) from System Default
    [68] BC4J Property jbo.poolmaxinactiveage='600000' -->(MetaObjectManager) from System Default
    [69] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
    [70] BC4J Property jbo.viewlink.consistent='false' -->(MetaObjectManager) from System Default
    [71] BC4J Property jbo.passivation.TrackInsert='true' -->(MetaObjectManager) from System Default
    [72] Skipping empty Property jbo.ViewCriteriaAdapter from System Default
    [73] BC4J Property jbo.SQLBuilder='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [74] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
    [75] BC4J Property jbo.TypeMapEntries='Oracle' -->(MetaObjectManager) from Client Environment
    [76] Skipping empty Property jbo.sql92.JdbcDriverClass from System Default
    [77] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
    [78] BC4J Property jbo.sql92.DbTimeQuery='select sysdate from dual' -->(MetaObjectManager) from System Default
    [79] BC4J Property oracle.jbo.defineColumnLength='as_chars' -->(MetaObjectManager) from System Default
    [80] Skipping empty Property jbo.tmpdir from System Default
    [81] Skipping empty Property jbo.server.internal_connection from System Default
    [82] Skipping empty Property SessionClass from System Default
    [83] Skipping empty Property TransactionFactory from System Default
    [84] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
    [85] BC4J Property jbo.debug.prefix='DBG: ' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [86] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [87] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [88] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [89] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [90] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [91] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
    [92] BC4J Property jbo.ejb.txntimeout='1830' -->(SessionImpl) from System Default
    [93] BC4J Property jbo.ejb.txntype='global' -->(MetaObjectManager) from System Default
    [94] BC4J Property jbo.ejb.txn.disconnect_on_completion='false' -->(SessionImpl) from System Default
    [95] Skipping empty Property oracle.jbo.schema from System Default
    [96] BC4J Property jbo.xml.validation='false' -->(MetaObjectManager) from System Default
    [97] BC4J Property ord.RetrievePath='ordDeliverMedia' -->(MetaObjectManager) from System Default
    [98] BC4J Property ord.HttpMaxMemory='102400' -->(MetaObjectManager) from System Default
    [99] Skipping empty Property ord.HttpTempDir from System Default
    [100] BC4J Property ord.wmp.classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' -->(MetaObjectManager) from System Default
    [101] BC4J Property ord.qp.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'-->(MetaObjectManager) from System Default
    [102] BC4J Property ord.rp.classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'-->(MetaObjectManager) from System Default
    [103] BC4J Property ord.wmp.codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' -->(MetaObjectManager) from System Default
    [104] BC4J Property ord.qp.codebase='http://www.apple.com/qtactivex/qtplugin.cab' -->(MetaObjectManager) from System Default
    [105] Skipping empty Property ord.rp.codebase from System Default
    [106] BC4J Property ord.wmp.plugins.page='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&' -->(MetaObjectManager) from System Default
    [107] BC4J Property ord.qp.plugins.page='http://www.apple.com/quicktime/download/' -->(MetaObjectManager) from System Default
    [108] BC4J Property ord.rp.plugins.page='http://www.real.com/player/' -->(MetaObjectManager) from System Default
    [109] BC4J Property jbo.security.enforce='None' -->(SessionImpl) from System Default
    [110] BC4J Property jbo.security.loginmodule='oracle.security.jazn.tools.Admintool' -->(SessionImpl) from System Default
    [111] BC4J Property jbo.server.useNullDbTransaction='false' -->(SessionImpl) from System Default
    [112] Copying unknown Client property (DBconnection='jdbc:oracle:oci8:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1526)))(CONNECT_DATA=(SID=sidname)))') to session
    [113] Copying unknown Client property (password='apassword') to session
    [114] Copying unknown Client property (JDBCName='dev_oci') to session
    [115] Copying unknown Client property (user='ausername') to session
    [116] Copying unknown Client property (jbo.applicationmoduleclassname='ctf.database.gpl.bc.BcModule') to session
    [117] Copying unknown Client property (ApplicationName='ctf.database.gpl.bc.BcModule') to session
    [118] WARNING: Unused property: LC='Calling Function' found in /oracle/jbo/common/Diagnostic.properties resource
    [119] }} finished loading BC4J properties
    [120] -----------------------------------------------------------Diagnostics: (Properties (re)loaded) Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    [121] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [122] JavaVMVersion: 9.0.3.738 cdov
    [123] JavaVMVendor: Oracle Corp.
    [124] JavaVMName: OJVM Client VM
    [125] OperatingSystemName: Windows 2000
    [126] OperatingSystemVersion: 5.0
    [127] OperatingSystemUsername: MacEwan James
    [128] Jbo323Compatible Flag: false, str: false
    [129] Loading from PM_BC.jpx file
    [130] Loading from indvidual XML files
    [131] Loading the Containees for the Package 'PM_BC.PM_BC'.
    [132] Registered Oracle JDBC driver with BC4J Server
    [133] Connected to Oracle JBO Server - Version: 9.0.3.10.7
    [134] BC4J: Instrumentation disabled
    [135] Loading from /ctf/database/gpl/bc/bc.xml file
    [136] Loading from indvidual XML files
    [137] Loading the Containees for the Package 'ctf.database.gpl.bc.bc'.
    [138] Loading from /ctf/database/gpl/bc/BcModule.xml file
    [139] Loading from /ctf/database/gpl/bc/GplElementView.xml file
    [140] ViewObjectImpl's default fetch mode = 0
    [141] Loading from /ctf/database/gpl/bc/GplElement.xml file
    [142] Loading Typemap entries from oracle.jbo.common.OracleTypeMapEntries
    [143] CSMessageBundle (language base) being initialized
    [144] OracleSQLBuilder reached getInterface
    [145] Oracle SQL Builder Version 3.2.0.0.0
    [146] Loading from /ctf/database/gpl/bc/GplGroupView.xml file
    [147] Loading from /ctf/database/gpl/bc/GplGroup.xml file
    [148] Loading from /ctf/database/gpl/bc/GplPageView.xml file
    [149] Loading from /ctf/database/gpl/bc/GplPage.xml file
    [150] Loading from /ctf/database/gpl/bc/GplParamView.xml file
    [151] Loading from /ctf/database/gpl/bc/GplParam.xml file
    [152] Loading from /ctf/database/gpl/bc/GroupPageIdFkLink.xml file
    [153] Loading from /ctf/database/gpl/bc/GroupPageIdFkAssoc.xml file
    [154] Loading from /ctf/database/gpl/bc/ElementPageFkLink.xml file
    [155] Loading from /ctf/database/gpl/bc/ElementPageFkAssoc.xml file
    [156] Loading from /ctf/database/gpl/bc/ParamElmFkLink.xml file
    [157] Loading from /ctf/database/gpl/bc/ParamElmFkAssoc.xml file
    [158] Using DatabaseTransactionFactory implementation oracle.jbo.server.Database TransactionFactory
    [159] mUsePersColl is false
    [160] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
    [161] ViewObjectImpl.mDefaultMaxActiveNodes is 30
    [162] DBTransactionImpl Max Cursors is 50
    [163] Created root application module: 'ctf.database.gpl.bc.BcModule'
    [164] Locale is: 'en_US'
    [165] DefaultConnectionStrategy is establishing an application module connection
    [166] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [167] Creating a new pool resource
    [168] Trying connection/2: url='jdbc:oracle:oci8:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ahost)(PORT=1526)))(CONNECT_DATA=(SID=asid)))' info='{user=ausername, password=apassword, java.naming.security.principal=ausername, java.naming.security.credentials=ausername}' ...
    [169] Successfully logged in
    [170] JDBCDriverVersion: 9.0.1.4.0
    [171] DatabaseProductName: Oracle
    [172] DatabaseProductVersion: Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production JServer Release 8.1.7.4.0 - Production
    [173] ViewRowSetImpl's jbo.viewlink.consistent = false (0)
    [174] Column count: 21
    [175] ViewObject : Created new QUERY statement
    [176] SELECT GplPage.PAGE_ID, GplPage.PAGENAME, GplPage.HEIGHT, GplPage.WIDTH, GplPage.UNITS, GplPage.GRID_SCALE, GplPage.GRID_FLAGS, GplPage.LEFT_GRID_MARGIN, GplPage.RIGHT_GRID_MARGIN, GplPage.BOTTOM_GRID_MARGIN, GplPage.TOP_GRID_MARGIN, GplPage.NUM_MINOR_GRID, GplPage.TYPE, GplPage.ACL, GplPage.CLASS, GplPage.DATE_MOD, GplPage.NUM_ELEMENT, GplPage.LOCKED, GplPage.FLAGS FROM GPL.GPL_PAGE GplPage
    [177] Column count: 11
    [178] ViewObject close prepared statements...
    [179] ViewObject : Created new QUERY statement
    [180] SELECT GplGroup.GROUP_ID, GplGroup.LINK_ID, GplGroup.USERNAME, GplGroup.GROUPNAME, GplGroup.ACL, GplGroup.CLASS, GplGroup.PAGE_ID, GplGroup.TAIL, GplGroup.TEST, GplGroup.SEQ, GplGroup.VERSION FROM GPL.GPL_GROUP GplGroup WHERE GplGroup.PAGE_ID = :1
    [181] Binding null for 1
    [182] Column count: 11
    [183] ViewObject : Re-defining and reusing prepared Statement
    [184] Binding param 1: 2
    [185] JBOTableModel: Recvd Event=[RangeRefreshEvent: GplGroupView2 start=0 count=1]
    [186] $$added root$$ id=-2
    [187] $$added root$$ id=-73
    [188] $$added root$$ id=-2559
    [189] Column count: 11
    [190] ViewObject : Reusing defined prepared Statement
    [191] Binding param 1: 363793
    [192] JBOTableModel: Recvd Event=[RangeRefreshEvent: GplGroupView2 start=0 count=1]
    [193] Removing an unreferenced, available pool instance
    [194] ViewObject close prepared statements...
    [195] ViewObject close prepared statements...
    [196] ViewObject close prepared statements...
    [197] ViewObject close prepared statements...
    [198] ViewObject close prepared statements...
    [199] ViewObject close prepared statements...
    [200] ViewObject close prepared statements...
    [201] Clearing EO cache for ctf.database.gpl.bc.GplPage
    [202] Clearing EO cache for ctf.database.gpl.bc.GplParam
    [203] Clearing EO cache for ctf.database.gpl.bc.GplGroup
    [204] Clearing EO cache for ctf.database.gpl.bc.GplElement
    [205] Clearing EO cache for ctf.database.gpl.bc.GplPage
    [206] Clearing EO cache for ctf.database.gpl.bc.GplParam
    [207] Clearing EO cache for ctf.database.gpl.bc.GplGroup
    [208] Clearing EO cache for ctf.database.gpl.bc.GplElement
    [209] Resetting AM=BcModule
    [210] *** closing jdbc connection now **** (oracle.jdbc.driver.OracleConnection@120)
    [211] mUsePersColl is false
    [212] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
    [213] ViewObjectImpl.mDefaultMaxActiveNodes is 30
    BC4J Tester exit code(0)

  • New User Database schema and table name

    When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.

    WebCenter (and WebCenter spaces) uses an 'identity store' instead of database schema for storing user information - in an 'out of the box' installation, users are maintained through an embedded WebLogic LDAP store.
    See the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter, p. 34-2.
    At the end of section 34.4.1:
    WebCenter Spaces supports self-registration. When new WebCenter users
    self-register, they create their own login and password and a new user account is
    created in the identity store. See also, Section 34.4, "Allowing Self-Registration".
    user9097357 wrote:
    When i create a new user in Oracle Webcenter Spaces 11g, I am not able to get the name of the database schema and table, where it is stored. Any insight on this will be very helpful.

  • Audit whole schema objects by multiple users or schemas in oracle 11gR2

    OS: LInux
    DB: Oracle 11gR2
    schema as many tables and DML access given to many user/schemas in oracle db.
    AUDIT ALL BY test BY ACCESS; appears to be audit records created only when changes are done using actual owner connection but not grantee..
    I need to audit all the test tables DML and DDL performed not just owner but all the grantees (grantees action should be audited only grantee do dml or ddl on test owner tables not his own tables).
    Need to audit test owner tables accessed by multiple users DML and DDL actions..
    is there any simplest way to do this and can someone please help me out?
    thanks.

    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4007.htm#i2059073
    Please read the passage labeled 'Auditing by clause'. It answers your question.
    Kindly consult documentation before asking any question.
    Sybrand Bakker
    Senior Oracle DBA

  • How to execute classes that reside in different user's schema

    I have to load a class in App1 and need to register a Java Stored Procedure in App2. This procedure refers class loaded in App1. Finally the procedure is to be executed from app1 user.
    I am working with oracle database. It has two schemas App1 and App2.
    I have a test class:
    public class myTest {
         public static void test(int a, long b)
              System.out.println("A : "+a);
              System.out.println("B : "+b);
    I have loaded the class in APP1 schema as follow
    loadjava -user app1/app1 -oci8 -resolve –grant app2 myTest.class
    Login to SQLPLUS by App1
    Then created Java Stored procedure in APP2
    CREATE OR REPLACE PROCEDURE APP2.Test( a IN NUMBER, b IN NUMBER) IS LANGUAGE JAVA NAME 'myTest.test(int,long)';
    Now when I call this procedure, it gives error mentioned below
    SQL> Call App2.Test (1, 2);
    ERROR at line 1:
    ORA-29540: class myTest does not exist
    waithing for your input:)
    Regards,
    Anil

    Hi,
    Thanks for your suggestion, but I am not able to resolve the issues as yet. So could you please elaborate on it.
    Our main concerned is to port an application running on DB2, to Oracle database. This application has multiple schemas, we have to load classes in one schema and refer theses classes from other schema. As explained in the query mentioned above.
    As mentioned in your article, to grant permission to others schemas while loading jar. I have tried this also. Following is the command we used to load classes in APP1 and grant permission to APP2.
    loadjava -user app1/app1 -oci8 -resolve -grant app2 myTest.class
    But when referring theses classes to create java stored procedure in schemas other than APP1, it says class doesn’t exit.
    The same things work fine in DB2 but now working in Oracle.
    Note: The application uses single jdbc connection, the connection is shared between different modules; this is achieved by making connection static. So we cannot load jar in all the schemas, as if we load jar in all the schemas then we won’t be able to share static variables.
    Please elaborate your suggested solution.
    Thanks

  • Dropping all objects in a user's schema

    Hi,
    I want to drop all the objects in my schema. Now I'm issuing the drop command every time to drop the objects one by one. Is there any way to drop all the objects at one go without dropping the user?
    Thanks,
    Babu

    Hi,
    How about dropping the user (schema) itself and re-creating it. That would gurantee dropping all schema objects.
    One problem is, you have to log in as SYS or SYSTEM or somebody with DBA privilege.
    I would say, before dropping the user, prepare the 'create user' script from TOAD or DBMS_DESCRIBE or using various data dictionary views, so that we have the complete create scripts with all the roles etc etc. Then drop the user and re-create it.
    Cheers

  • Confusion over user and schema

    hi all i am new to oracle
    as far as my understanding goes in oracle for every user by default an schema
    is created where tables and other objects are granted to the user please correct me if i am wrong
    now my problem is that i created user but its not getting reflected in the schema
    shouldnt the schema get created automatically
    i am confused what should i check for
    thanks in advance

    hello,
    First of all you should know the terminology.
    Schema -> Collection of objects (Tables, Views, Indexes, Sequences etc.,)
    Example: Scott/tiger (Is a sample oracle user) In database terminology it is named as Scott's Schema.
    When you create a new user in oracle the user would be empty with no objects. Unless you have previleges to create objects.
    SRI>create user junk identified by junk
    2 default tablespace users
    3 temporary tablespace temp;
    User created.
    Elapsed: 00:00:00.15
    SRI>conn junk/junk@sri
    ERROR:
    ORA-01045: user JUNK lacks CREATE SESSION privilege; logon denied
    Warning: You are no longer connected to ORACLE.
    SRI>conn sri/sri@sri
    Connected.
    SRI>grant connect to junk;
    Grant succeeded.
    Elapsed: 00:00:00.03
    SRI>conn junk/junk@sri
    Connected.
    SRI>select * from tab;
    no rows selected
    SRI>create table x(id number(10));
    create table x(id number(10))
    ERROR at line 1:
    ORA-01031: insufficient privileges
    Elapsed: 00:00:00.00
    SRI>conn sri/sri@sri
    Connected.
    SRI>grant resource to junk;
    Grant succeeded.
    Elapsed: 00:00:00.01
    SRI>conn junk/junk@sri
    Connected.
    SRI>create table x(id number(10));
    Table created.
    SRI>select * from tab;
    TNAME TABTYPE CLUSTERID
    X TABLE
    Hope this info helps you to start with :)
    cheers
    -Sri

  • Users / Workspaces / Schemas ?

    Please can someone clarify the relationship between Users, workspaces and schemas . .
    I have 3 schemas (say SchemaA, schemaB and SchemaC) in the database and created three workspaces to correspond to them (WkspA, WkspB and WkspC).
    When it comes to users:
    Manage Application Developers --> create
    Fill in the details and associate userA to SchemaA and workspace wkspA.
    If I also want to allow userA access to WkspB and wkspC how is this achieved?
    Do I have to go back into Manage Application Developers and put in ALL the same info (username, email , first name etc) and associate them to the next schema (WkspB) and then repeat for WkspC.
    Is this correct - Is there no way of creating a user once and then associating him with multiple workspaces?
    Any advice appreciated.
    Thanks
    Jon

    Jon,
    1. Workspaces are completely isolated from one another in all respects. Nothing is shared between workspaces (except site-wide environment settings).
    2. When you login to the service admin application (htmldb_admin) admin you can use that Manage Application Developers link to manage developer accounts in any workspace in the instance. However, you may find it more convenient to manage developers on an individual workspace basis by logging in as the administrator of each workspace and using the administration pages there.
    3. As stated above, user accounts with a given name in one workspace have no relationship to user accounts with the same name in another workspace. User 'JON' in ws A is as separate and distinct from user 'JON' in ws B as User 'X' is from user 'Y' in those two workspaces.
    4. The main reason to create distinct workspaces for different groups of developers is to keep them from seeing/altering/running each other's applications.
    Scott

Maybe you are looking for

  • Show all files in a folder, whether in catalogue or not

    New User to Elements 9 but heavy user of other photo editing software.  Have significant investment of time in a structured folder/file organization with thousands of photos.  Now having experimented  with the organizer, moving stuff in the organizer

  • I pod wont restore through itunes

    Hi, had probs with my i pod classic 180gb. Start up in itunes it says "ipod preparing for recovery" then " itunes detected an ipod in recovery mode needs to restore", so i do that but it comes up saying itunes could not restore " an unknown error has

  • IS MILL - Customizing of material provision indicators incomplete

    Dear PM Gurus,                       We are currently implementing SAP IS-MILL. We have completed the basic configurations for Technical objects and BOM. But whenever we try to create a BOM, it throws an error in the ITEM/LONG text screen, Customizin

  • Need help in CS3

    I'm trying to create a line of text (well, multiple lines of text) that will look like this:      1234567     Title......................$12.34 I've figured out how to get the tabs that I want, but can't figure out how to get the ".........." to show

  • Photo corruption, images altered

    I came across something odd today on iPhoto 7.1.3 (though I'll update to iPhoto 8 I'm sure it won't help - read on). I noticed in my Photo Library that some thumbnails don't display (a black box). When I double click the black thumbnail, it opens the