Create user/schema is script, then tables for that user/schema

Hi;
First off, if I phrase this a little wrong - I'm from the Sql Server world and still trying to totally understand Oracle.
I have a schema (.sql file) that creates my database fine. But what I would liek to add to the .sql schema is for it to create a user and then place all the tables, indexes, sequences, and triggers in as belonging to that created user.
This way we can tell people to log in as sysop and run the script to create the schema rather than create the user, log in as the user, then run the script.
What do I need to add?
thanks - dave

Hi;
I have tried:
CREATE USER DAVE IDENTIFIED BY password;
CONNECT DAVE/password AS SYSDBA
I have also tried:
CONNECT DAVE/password AS SYSTEM
CONNECT DAVE AS SYSDBA
CONNECT DAVE
In all cases ApplicationExpress says it does not recognize the CONNECT command. Should I do something different? What I want to accomplish is that all subsequent commands in the script creating tables, indexes, etc are assigned to the user/schema DAVE.
thanks - dave

Similar Messages

  • How to create DB partitioning in active data tables for ods?

    hi all,
    Can anyone let me know how to create DB partitioning in active data tables for ods. if any docs pls share with me at my email id : [email protected]
    regds
    haritha

    Haritha,
    The following steps will briefly explain you to improve the performance in terms of DB partitioning as well as loading. Please find the same,
    transaction RSCUSTA2,
    oss note 120253 565725 670208
    and remove 'bex reporting' setting in ods if that ods not used for reporting.
    hope this helps.
    565725
    Symptom
    This note contains recommendations for improving the load performance of ODS objects in Business Information Warehouse Release 3.0B and 3.1 Content.
    Other terms
    Business Information Warehouse, ODS object, BW, RSCUSTA2, RSADMINA
    Solution
    To obtain a good load performance for ODS objects, we recommend that you note the following:
    1. Activating data in the ODS object
    In the Implementation Guide in the BW Customizing, you can implement different settings under Business Information Warehouse -> General BW settings -> Settings for the ODS object that will improve performance when you activate data in the ODS object.
    1. Creating SIDs
    The creation of SIDs is time-consuming and may be avoided in the following cases:
    a) You should not set the indicator for BEx Reporting if you are only using the ODS object as a data store.Otherwise, SIDs are created for all new characteristic values by setting this indicator.
    b) If you are using line items (for example, document number, time stamp and so on) as characteristics in the ODS object, you should mark these as 'Attribute only' in the characteristics maintenance.
    SIDs are created at the same time if parallel activation is activated (see above).They are then created using the same number of parallel processes as those set for the activation. However:if you specify a server group or a special server in the Customizing, these specifications only apply to activation and not the creation of SIDs.The creation of SIDs runs on the application server on which the batch job is also running.
    1. DB partitioning on the table for active data (technical name:
    The process of deleting data from the ODS object may be accelerated by partitioning on the database level.Select the characteristic after which you want deletion to occur as a partitioning criterion.For more details on partitioning database tables, see the database documentation (DBMS CD).Partitioning is supported with the following databases:Oracle, DB2/390, Informix.
    1. Indexing
    Selection criteria should be used for queries on ODS objects.The existing primary index is used if the key fields are specified.As a result, the characteristic that is accessed more frequently should be left justified.If the key fields are only partially specified in the selection criteria (recognizable in the SQL trace), the query runtime may be optimized by creating additional indexes.You can create these secondary indexes in the ODS object maintenance.
    1. Loading unique data records
    If you only load unique data records (that is, data records with a one-time key combination) into the ODS object, the load performance will improve if you set the 'Unique data record' indicator in the ODS object maintenance.
    Hope this helps..
    ****Assign Points****
    Thanks,
    Gattu

  • When a new user is created on the Server Computer,Why profile for the user is created as computername.username?

    When a new user is created on the Server Computer,Why profile for the user is created as computername.username?

    This is done if there are domain users with the same name. For example, if there is a domain user named 'test' who has logged in on the server, he will get the profile 'test'. If you then create a local user named 'test', the profile 'test' already exists
    and the computer will create the profile 'computername.test'

  • Using Pages, I have created a document and inserted a Table for use in logging an inventaory. When I came to print this off however the lines for the table were missing but the text was in the Table format, weird! How do I print the Table?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

  • Aggregate of all Columns in each table for the entire schema

    I want to calculate the report of Aggregate of all Columns in each table for the entire schema in Oracle. Pls let me know which approach is best to do this.
    Thanks in advance !!

    Not sure about your requirement..
    This?
    select table_name,sum(data_length) sm
    from user_tab_cols
    group by table_name;                                                                                                                                                                                                                                                                           

  • Do I can create a page who is locked just for selected user?

    Do I can create a page who is locked just for selected user?

    The manner how you put files on the server is unimportant.
    It's the Webserver (usually Apache) itself that does the protecting.
    So either use the control panel where you host your website, or use the method explained on the page I linked to.
    Should look like this (on the left) :
    Your visitor will see this :
    http://home.wyodor.net/protect/
    Use : root/root
    Inside it looks like this :

  • Wich rights must a user have to copy a table to another user?

    Wich rights must a user have to copy a table to another user? If I try it while using SQLDeveloper I become a message wich says that the user has not enough rights.
    Thanks a lot
    Torsten

    If you are trying to create a table in a schema other than your own, you must have the CREATE ANY TABLE system privilege.

  • CREATE TABLE for another OWNER/SCHEMA and in another TABLESPACE?

    I am logged in a SYSTEM user. Now I want to create a table aaa. The owner of this table should not be SYSTEM but user KARL. and the TABLESPACE should not be SYSTEM but the (existing) TABLESPACE tttt.
    As far as I know I can achieve this by issuing the following command:
    CREATE TABLE KARL.aaa ( a INTEGER, .......) TABLESPACE tttt;
    Regarding the TABLESPACE parameter I am not sure. Is it possible to allocate a TABLE for User Karl in a TABLESPACE which is not assigned to him?
    Furthermore I have an additional problem.
    I have a script with hundreds of CREATE TABLE + ALTER TABLE + CREATE INDEX DDL statements.
    All of them are not prepended with Schema/Owner and an TABLESPACE clause.
    Can I put somehow one single instruction at the top of the script which telles Oracle
    to use
    - OWNER Karl as Schema/Owner for all subsequent DDL stements
    - TABLESPACE tttt as TABLESPACE for all subsequent DDL stements
    In MYsql there is a "use <database>" statement. Is there soemthing similar for Oracle?
    Thank you
    Peter

    Yes... you can do that. Take for example a user A who has a secret password that you don't wish to give out... like an application schema. User B needs to make tables/objects in schema A and you want to track what user B is doing. First setup Oracles Fine Grained Auditing and then grant "connect through" from user A to user B as follows:
    SQL> create user b identified by abc123
      2    quota unlimited on users;
    User created.
    SQL> grant create session to b;
    SQL> create user a identified by abc123
      2    quota unlimited on users;
    User created.
    SQL> grant create table
      2      , create session
      3     to a;
    Grant succeeded.
    SQL> alter user a grant connect through b;
    User altered.
    SQL> connect b[a]/abc123@a486
    Connected.
    SQL> show user
    USER is "A"
    SQL> create table a.my_proxy_table
      2  ( c1 number
      3  , c2 varchar2(50)
      4  , c3 date
      5  );
    Table created.-----
    See that I connected using the "username[proxyuser]" syntax. Also notice that user B is by proxy user A, illustrated by my "show user" command. The connect through can be granted/revoked as needed without divulging A's password to B. In addition, your audit tables or xml logs will track the fact that user B created table a.my_proxy_table.
    Hope this helps,
    John

  • What is the name of the table for finding user exit !

    What is the table name to find the user exit !

    Hi,
    Goto to the table tstc and enter the transaction code for
    which u want to find out the User-Exits. Check out the
    program name from the result. Goto SE38 and dee that
    program in display mode. Then search for the string Call
    Cutomer-Funtion. All the result of search are the user
    exits defined there for that transaction.
    SAP user exits (enhancement names that we see in SMOD transaction) are all stored in the table MODSAP. The field NAME contains the enhancement name and the field MEMBER contains the name of the function module that will be called if the customer enhancement exists and is active. The customer enhancement projects are stored in the table MODACT. There, the NAME field is the name of the project and MEMBER is the name of SAP enhancement (that from the MODSAP).
    So, if you are in some include, you can use where-used-list to get to the function module name. Then you find the SAP enhancement name from the MODSAP by supplying the function module. And finally, you find the customer enhancement projects by querying the MODACT with the SAP enhancement in the field MEMBER.
    cheers,
    vasavi.
    kindly reward if helpful.

  • ESS Team Calendar comming as Table for some users

    Hi,
    When the users navigate to ESS -> working Time -> Leave request -> Team calendar
    Then for some users it coming as Table, while for other it is coming as proper chart(graphics).
    We want the it as chart(graph) for all users.
    Any suggestions?
    _vishal

    It seems that accessibility switch is on for the users for which the chart is not coming properly. In the UserAdministration Search for the user for which the chart is not coming properly and uncheck the accessibility flag.
    Thanks
    Prashant

  • Tables for two users.

    Hi, i have a question. I have installed two users in the same Tablet Pc.
    In the data folder i have two tables for the same SyncBo (one for each user).
    I need a sql sentence or standard java function to identify the table
    that correspond to a user. Thanks.

    Hi Julian,
        I assume you are using DB2e persistence since you say that there are two "tables" for the same SyncBo. In order to find out which table corresponds to which user, you will have to identify the "Conversation ID" corresponding to each user first.
       Conversation ID is the combination ID for {Device ID + user ID + Application ID}
       You can find this out from the trace file and then you have to query on MI_TABMAP table to find out the corresponding table for each conversation ID.
       The DB2eCLP.exe tool required to query on tables can be found in SDN:
    https://www.sdn.sap.com/irj/sdn/downloads -> MI -> New!  DB2 Everyplace SDK for SAP
    Thanks and Best Regards,
        Sandeep

  • How to create a LOGIN Form & LOGIN ID & PASSWORD for END USERS

    hi,
    i have just created a Database and Forms & Reports using developer 6i.
    now i want to deleiver that Database to end users, but i dont know that how to create a LOGIN Form for the end users and also i want to assign each user a Login ID & Password.
    Plz help me to solve out this problem.

    1. Create the user accounts on the database CREATE USER ... IDENTIFIED BY...
    2. Grant CONNECT Role to the Users
    3. in the main form (the one which is being called initially at runtime) in the ON-LOGON-Trigger create a CALL_FORM() to the Login Form
    4. The Login Form will be called; build a Block with username, password and a Button
    5. In the Button call the LOGON Built-In
    6. Control will be passed to the initially called form again
    I also noticed a thread in here explaining this in more detail...
    Message was edited by:
    user434854

  • Calendar Free/Busy permissions being ignored for users migrated from Exchange 2003, fine for new users created on Exchange 2010

    I have uncovered a situation where it seems the free/busy permissions are being ignored for users that were migrated from Exchange 2003 to Exchange 2010.
    I have the default permissions set to only show Free/Busy Time, not Details.  However if I look at the calendar for a users who was migrated from the old Exchange 2003 server, I can see details.  If I look
    at a newer user who was added directly to the Exchange 2010 server, I (correctly) only see the times and "Free" or "Busy", not the specific details.
    I verified the permissions on the migrated mailboxes many different ways (Exfolders, cmdlets, etc) and all signs point to only allow showing Free/Busy Times, but alas, I can still see the Details as well.
    My users are using Outlook 2010.

    Hi,
    Does this issue occur on Outlook only or both Outlook and OWA?
    Since you have double checked the permissions via multiple methods, it seems there is nothing problem on permission. Please make sure the migration from Exchange 2003 server completed successfully.
    If in OWA everything goes well (cannot see details), it should be an issue on the Outlook client side.
    I suggest run Outlook under safe mode to avoid some AVs and add-ins.
    I suggest re-create profile to refresh the caches.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Script to Determine Users Connected to Oracle Apps and For Imitating Users

    I found this great script (Note:430948.1 on Metalink) to track users connected to the E-Business Suite.
    My colleague though noticed that users who had shut their browsers without logging off or those users who had 'timed out of their session' would still come back in the report.
    He wanted an accurate measure of who was in fact using the e-Business suite.
    We took the original query and added the last line (below). It basically takes the ‘last connect’ time and adds 60 minutes to it to figure out who is ‘validly’ still connected.
    select distinct ic.disabled_flag, fu.user_name User_Name,fr.RESPONSIBILITY_KEY Responsibility, fu.user_name,fu.user_id, fu.description, fu.employee_id,
    ic.responsibility_application_id, ic.responsibility_id, ic.org_id, ic.function_type, ic.counter, ic.first_connect, ic.last_connect,
    ic.nls_territory, ic.time_out, fr.menu_id, fr.responsibility_key
    from apps_fnd.fnd_user fu,
    apps_fnd.fnd_responsibility fr, apps_fnd.icx_sessions ic
    where fu.user_id = ic.user_id AND
    fr.responsibility_id = ic.responsibility_id AND
    ic.disabled_flag='N' AND
    ic.responsibility_id is not null AND
    ic.last_connect > sysdate - (ic.time_out/60)/96
    Can anybody see any issues with this query? or a better way to do this?
    It looks like Oracle runs a clean up script to wipe out sessions after a certain amount of time so they are no longer active sessions - so this works around that.

    From my Exchange Server in an Exchange PS session:
    Name        : Admin Audit Log Agent
    Enabled     : True
    Priority    : 255
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Scripting Agent
    Enabled     : False
    Priority    : 6
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : OAB Resources Management Agent
    Enabled     : True
    Priority    : 5
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Provisioning Policy Agent
    Enabled     : True
    Priority    : 4
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Mailbox Creation Time Agent
    Enabled     : True
    Priority    : 3
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Mailbox Resources Management Agent
    Enabled     : True
    Priority    : 2
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Rus Agent
    Enabled     : True
    Priority    : 1
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Query Base DN Agent
    Enabled     : True
    Priority    : 0
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    The output is the same from my workstation after loading the PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
    Rob Smura, MCSE

  • EXP: Export all tables for one user except the contents of one table

    I need to export all tables (> 100 Tables) of an user except the contents of one table. Is there a possibility to call the EXP command and exclude the one table ??
    Thanks in advance .-)
    (Oracle11G)
    Edited by: gromit on Feb 14, 2011 4:41 AM

    It is not possible to perform it from a client. Is this correct? The datapump task itself can be started from a client, but - you are right - datapump is server-based. Especially that refers to the dumpfile location, which has to be defined as DIRECTORY on the server:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/dp_overview.htm#i1007107
    Werner

Maybe you are looking for

  • How can I split a very large chapter into 3 smaller chapters without losing imbedded photos or formatting?

    I haven't a clue what this is supposed to contain. My problem is described above.

  • Mac Internal Drive Full

    After purchasing a new IMac and giving my old one to my wife I used Time Machine to load my old Mac info into my new one. But I now have an almost full new Mac drive! I erased my Time Machine which had both computers backed up as directedby a Mac rep

  • Movie in webinar

    I want to show a movie in the webinar, but do not want that the audience has the possibillity to start and stop the movie themselves. How can I arrange this?

  • How can I permanently disable automatic page updates?

    When I log into my Yahoo e-mail I get the following message:If you are using a screen reader and having problems using Mail, it might help to disable automatic page updates. Please note, this will also disable chat and text messaging within Yahoo! Ma

  • Refurbishment using serial numbers.

    Hi, I am trying to do refurbishment for a material that is Serial Number managed. It has got three valuation types namely New, Damaged & Repaired. Suppose Sr. No. 1 has been issued. Then it gets damaged. I want to bring it to Maintenance warehouse. N