Create schema objects

hey ,
i am a student in oracle family. i am trying to create a schema object in the database. i want to enter into the database as an admin. i am typing the user name : SYSTEM and password: MANAGER. but it says invalid user name. can anyone please tell me the correct user name and password to create an user.
hossain

Type sqlplus in run as below.
Start->Run-> sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on Mon Jun 11 13:14:22 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> Show user
USER is "SYS"
SQL>
Hope it works.
...

Similar Messages

  • I need to create schema objects like OE,HR,SCOTT in existing ORACLE DATABASE INSTANCE

    I have oracle 9i installed and running.
    I need to create in existing Oracle Instance only few more schema.
    In instance we have schemas like SCOTT,OE,HR etc.,........
    How do I create my own schema object say PRODUCTS so that I can assign the required tables.
    has anyone has points and tips....
    please do send me the information
    thanks & regards
    Prakash

    Pl do not post duplicates - continue the discussion in your original thread - Re: Exp/Imp Database (DATA PUMP)

  • Is there any need to create schema in unvierse designer of business objects

    HI this is sridhar
    is there any need to create schema in unvierse designer of business objects xi r2,  when i integrated sap bi data into business objects,i,e i have fetched sap-bi/bw data to business objects universe
    please help me

    I don't see what is wrong with
    <jsp:useBean id="tabsConfigurator" class="com.mypackage.TabLayoutConfiguratorImpl"/>
    The class has a no-args constructor at least. The useBean tag will work with it. Probably.
    But still, some code just can't be translated into scriptless JSTL.
    Calling methods which take parameters is one of those things.
    In this case you probably want to write a custom tag to work with your tabs
    I would probably look at using custom tags like this:
    <%@ taglib prefix="tab" uri="/WEB-INF/TabLayout.tld"%>
    // tab to create the configurator.
    // either export it as a var, or use other tags only nested within this one
    // so you can get access to the configurator.
    <tab:configure var="configurator">
      <tab:render configurator="${configurator}" tab="${tab}">
    </tab:configure>I don't know exactly what the scriptlet code will be doing. But I think a custom taglib would be the only way to eliminate scriptlet code that you have here.

  • Error creating EO- The specified schema object is not an existng object

    hi,
    I am getting an error "The specified schema object is not an existing object .Please un check Exisiting Object or select an exisiting object" while creating an EO.
    Does any one knows how to get rid of it.
    Thanks,
    Murlai

    Hello
    Looks like this is an old thread, but since I had the same problem and figured it out, I though I'll share it here:
    What I figured is that in the Select Schema Object wizard, if I prefix the schema object with the schema name, then the attributes are fetched from the database. like this:
    dbo.employeeinstead of this:
    employeewhich is kind of strange because the schema is already mentioned in the database schema section and jdeveloper fills the object value after we choose it.
    Good luck

  • Creating EO: The specified schema object name is not an existing object.

    Hi Experts,
    I am Using Jdev 11.1.2.2
    I am connecting to Mysql DB, When am creating a EO with in the same schema, am getting following error:
    The specified schema object name is not an existing object. Unselect Existing Object or enter an existing schema object.in jdev
    If i unchecked the existing schema its creating empty eo, it is unable mapping the attributes. So how can resolve it.
    Pl help out me.
    Best Regards
    Bittu.

    try prefixing the objectName with the schemaName when you create the EO in mySQL , as mentioned at end of this thread -
    Error creating EO- The specified schema object is not an existng object

  • Create trigger before any DML or DDL operations on any schema objects

    Dears,
    I need to create a trigger on schema that fire before any DML or DDL operations on any object (table,view,. . . etc) in the schema.
    Can i do this, like "BEFORE insert or update or delete or drop or truncate on SCHEMA" ?
    Thanks & Regards,,

    Dear Peter,_
    Please, i need to say one thing before reading my below simple answers . . .
    You must deal with any issue from others seriously and read it carefully_
    Sorry, you haven't explained anything about your actual problem, we are still left to guessing.Not right, I was clear as i said the below notes:
    1 - I need to create a trigger on schema that fire before any DML or DDL operations on any object.
    2 - We have another simple application is connected also to DB and we must have this application but DB password is must written clear in some files and these files must be shared for business requirements.
    Since I still do not understand your problem, I can only guess of the most relevant:After all of the above clarification, still do not understand . . . How !!!
    1.9 Sweeping privileges. This is always a good exercise
    2.10 Audit and Analyse User access. Who connects as what from where (And later maybe why).
    3.8 Restrict Access from Specific Nodes OnlyYou are right but not valid in my issue.
    3.1 Remove the passwords from scriptsIt seems that you did not read my replies carefully as I said before that DB password is must be written clear in some files and these files must be shared for business requirements.
    Why not spend just a day to get some feeling of the ideas, and find the best match(es) for your situation.I am investigating in my issue a month ago and tried a lot of solutions but found that i will have to apply this trigger solution.
    If you are looking for a short answer in a public forum, I am afraid you won't find it.
    (At least not until we understand what you are trying to do, and why)I know exactly what i need and why. Read again my replies carefully and you will know also.
    Not at allSure, you still do not understand because you did not read my replies carefully !
    Dear All_
    I already created the trigger to prevent any DML or DDL on any schema objects for specific users.
    If all the users now have the super password, i can permit specific users to do (DML & DDL) and the others will not be able at all.
    As a Challenge, i can say the super password now to the public and they will not be able to do any (DML & DDL) . . . I can say now, "I succeeded" :)
    Really, thanks All for greatest support . . . Already i was benefited a lot from your advises.
    Regards,

  • Not able to select the other schema objects mrtadata

    Hi,
    My function returns the matadata of a table (xml format) in the current schema but unable return output of another schema objects. I have the privileges of export full database, import full database and select_catalog_role also.
    It doesn't throw any error just throws empty xml.
    my code is...
    CREATE OR REPLACE FUNCTION TUNER.F_DBEG3(V_Schema VARCHAR2, V_Table VARCHAR2)
    RETURN XMLTYPE
    AS
    Handle NUMBER; --handle returned by OPEN
    V_First_Part XMLTYPE;
    V_Next_Part XMLTYPE;
    V_Output_Total XMLTYPE;
    V_Cnt NUMBER := 0;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('START THE PROGM');
    Handle := DBMS_METADATA.OPEN('DATABASE_EXPORT');
    DBMS_OUTPUT.PUT_LINE('Open the handle');
    DBMS_METADATA.SET_COUNT(HANDLE, 1000);
    DBMS_METADATA.set_filter (Handle, 'INCLUDE_PATH_EXPR', '=''TABLE''');
    DBMS_METADATA.SET_FILTER(Handle,'NAME', V_Schema,'SCHEMA');
    DBMS_METADATA.SET_FILTER(Handle,'NAME', V_Table,'TABLE');
    DBMS_OUTPUT.PUT_LINE('Filter the required objects');
    LOOP
    DBMS_OUTPUT.PUT_LINE('Start the loop');
    DECLARE
    no_mvlog exception;
    pragma exception_init( no_mvlog, -31608 );
    BEGIN
    V_First_Part := DBMS_METADATA.FETCH_XML(Handle);
    EXCEPTION
    WHEN no_mvlog THEN
    EXIT;
    DBMS_OUTPUT.PUT_LINE ('No mv log');
    END;
    IF V_First_Part IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE('First Count is '|| v_cnt);
    DBMS_OUTPUT.PUT_LINE('Into the process ');
    else
    DBMS_OUTPUT.PUT_LINE('Exit the loop ');
    exit;
    end if;
    IF V_Cnt = 0 THEN
    V_Output_Total := V_First_Part;
    DBMS_OUTPUT.PUT_LINE('track the metadata in xml form ');
    ELSE
    IF V_Cnt is not null and V_Cnt > 0 then
    SELECT EXTRACT(V_First_Part, '/ROWSET/ROW') INTO V_Next_Part FROM DUAL;
    SELECT APPENDCHILDXML(V_Output_Total,'/ROWSET',V_Next_Part) INTO V_Output_Total FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('combining the child xml''s ');
    END IF;
    END IF;
    V_Cnt := V_Cnt +1;
    DBMS_OUTPUT.PUT_LINE(' Last Count is '|| v_cnt);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('converted into xml');
    return v_output_TOTAL;
    DBMS_METADATA.CLOSE(Handle);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    RAISE_APPLICATION_ERROR (
    -20001,
    'Please check! ' || V_Table || ' not an object'
    WHEN OTHERS
    THEN
    DECLARE
    SQL_ERROR NUMBER := SQLCODE;
    SQL_ERRMESS VARCHAR2 (250) := SUBSTR (SQLERRM, 1, 200);
    BEGIN
    DBMS_OUTPUT.PUT_LINE (SQL_ERROR || 'Message : ' || sql_errmess);
    END;
    END;
    but when i use like below i got o/p.
    SELECT DBMS_METADATA.GET_XML('TABLE','ACT_RAP_T','EMACH') FROM DUAL;
    Please tell me where iam wrong.
    regards,
    Madhavi.

    Can you let me know is this problem for the components which are in containers only..
    Yes, as Charles said, the problem is for grouping/ungrouping in containers.  If you find otherwise, please let us know.
    <br>
    This problem you will be looking for next iteration, so is it going to be Service Pack or some Hot Fix..
    Is it possible for us to know the issues which will be looked for the next iteration so that we can know what are the issues current version has so that we have the good idea..
    Correct, it will be for Fix Pack 1 (size between a Service Pack and a Hot Fix).
    We don't have a list of issues.  I don't believe it's procedure to disseminate such information.  Usually we give the information on an individual issue basis.  For instance, this issue is slated for FP1.
    <br>
    Javier

  • Not able to create an object using dbms_metadata.put function

    Hi,
    I have the metadata of an object in one of my database table as xml. I failed to recreate the object in the other schema using metadata api. I developed a stored function to do the above job. My function doesn't throw any error meanwhile it doesn't create the object.
    My code snippet is
    CREATE OR REPLACE PROCEDURE DDI.move_table(
    table_name in VARCHAR2,
    from_schema in VARCHAR2,
    to_schema in VARCHAR2 )
    AUTHID CURRENT_USER
    IS
    -- Define local variables.
    h1 NUMBER; -- handle returned by OPEN
    h2 NUMBER; -- handle returned by OPENW
    th1 NUMBER; -- handle returned by ADD_TRANSFORM for MODIFY
    th2 NUMBER; -- handle returned by ADD_TRANSFORM for DDL
    xml XMLTYPE; -- XML document
    errs sys.ku$_SubmitResults := sys.ku$_SubmitResults();
    err sys.ku$_SubmitResult;
    result BOOLEAN;
    BEGIN
    SELECT REPOS INTO xml from ddi.ddi_repos_t where obj_id = '1801';
    -- Specify the object type using OPENW (instead of OPEN).
    h2 := DBMS_METADATA.OPENW('TABLE');
    -- First, add the MODIFY transform.
    th1 := DBMS_METADATA.ADD_TRANSFORM(h2,'MODIFY');
    -- Specify the desired modification: remap the schema name.
    DBMS_METADATA.SET_REMAP_PARAM(th1,'REMAP_SCHEMA',from_schema,to_schema);
    -- Now add the DDL transform so that the modified XML can be
    -- transformed into creation DDL.
    th2 := DBMS_METADATA.ADD_TRANSFORM(h2,'DDL');
    -- Call PUT to re-create the object.
    result := DBMS_METADATA.PUT(h2,xml,0,errs);
    DBMS_METADATA.CLOSE(h2);
    IF NOT result THEN
    -- Process the error information.
    FOR i IN errs.FIRST..errs.LAST LOOP
    err := errs(i);
    FOR j IN err.errorLines.FIRST..err.errorLines.LAST LOOP
    dbms_output.put_line(err.errorLines(j).errorText);
    END LOOP;
    END LOOP;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-20510,'No xml is available as metadata');
    END;
    Could you tell me where is the probelm?
    The schema where i created and execute my function having dba privilege also.
    Regards,
    Madhavi.

    Hi Madhavi,
    The below code works for me:
    SQL> conn sys as sysdba
    Connected.
    SQL> select count(*) from dba_objects where object_name = 'DEPT' and owner = 'OE';
      COUNT(*)                                                                     
             0                                                                     
    SQL> CREATE OR REPLACE PROCEDURE move_table(
      2  table_name in VARCHAR2,
      3  from_schema in VARCHAR2,
      4  to_schema in VARCHAR2 )
      5  AUTHID CURRENT_USER
      6  IS
      7  -- Define local variables.
      8  h1 NUMBER; -- handle returned by OPEN
      9  h2 NUMBER; -- handle returned by OPENW
    10  th1 NUMBER; -- handle returned by ADD_TRANSFORM for MODIFY
    11  th2 NUMBER; -- handle returned by ADD_TRANSFORM for DDL
    12  xml clob; -- XML document
    13  errs sys.ku$_SubmitResults := sys.ku$_SubmitResults();
    14  err sys.ku$_SubmitResult;
    15  result BOOLEAN;
    16  BEGIN
    17 
    18  select DBMS_METADATA.GET_XML('TABLE','DEPT','SCOTT') into xml from dual;
    19 
    20  -- Specify the object type using OPENW (instead of OPEN).
    21  h2 := DBMS_METADATA.OPENW('TABLE');
    22 
    23  -- First, add the MODIFY transform.
    24  th1 := DBMS_METADATA.ADD_TRANSFORM(h2,'MODIFY');
    25 
    26  -- Specify the desired modification: remap the schema name.
    27  DBMS_METADATA.SET_REMAP_PARAM(th1,'REMAP_SCHEMA',from_schema,to_schema);
    28 
    29  -- Now add the DDL transform so that the modified XML can be
    30  -- transformed into creation DDL.
    31  th2 := DBMS_METADATA.ADD_TRANSFORM(h2,'DDL');
    32 
    33  -- Call PUT to re-create the object.
    34  result := DBMS_METADATA.PUT(h2,xml,0,errs);
    35 
    36  DBMS_METADATA.CLOSE(h2);
    37  IF NOT result THEN
    38 
    39  -- Process the error information.
    40  FOR i IN errs.FIRST..errs.LAST LOOP
    41  err := errs(i);
    42  FOR j IN err.errorLines.FIRST..err.errorLines.LAST LOOP
    43  dbms_output.put_line(err.errorLines(j).errorText);
    44  END LOOP;
    45  END LOOP;
    46  END IF;
    47  EXCEPTION
    48  WHEN NO_DATA_FOUND THEN
    49  RAISE_APPLICATION_ERROR(-20510,'No xml is available as metadata');
    50  END;
    51  /
    Procedure created.
    SQL> exec move_table('DEPT','SCOTT','OE');
    PL/SQL procedure successfully completed.
    SQL> select count(*) from dba_objects where object_name = 'DEPT' and owner = 'OE';
      COUNT(*)                                                                     
             1                                                                     
    SQL> spool off;The xml returned by the get_xml function contains the tablespace name and storage parameters of the schema in which the object is present.
    Check these parameters for both your schemas.

  • Error while creating DiscoveryClient object

    Hi,
    i have an issue creating DiscoveryClient object. I tried to solve this by granting all permissions and THEN generating the secret but i still the same Exception.
    public string discoveryId = "https://api.office.com/discovery/";
    public string cmmAth = "https://login.windows.net/Common";
    public async Task<OutlookServicesClient> EnsureClientCreatedAsync()
    try
    string authority = cmmAth;
    _authenticationContext = new AuthenticationContext(authority);
    DiscoveryClient discoCli = new DiscoveryClient(async () => await GetTokenHelperAsync(_authenticationContext, discoveryId));
    CapabilityDiscoveryResult discoResult = await discoCli.DiscoverCapabilityAsync("Calendar");
    var outlookCli = new OutlookServicesClient(discoResult.ServiceEndpointUri, async () => await GetTokenHelperAsync(_authenticationContext, discoResult.ServiceResourceId));
    return outlookCli;
    catch (AdalException e)
    MessageBox.Show(e.ToString());
    if(_authenticationContext != null && _authenticationContext.TokenCache != null){
    _authenticationContext.TokenCache.Clear();
    return null;
    public async Task<string> GetTokenHelperAsync(AuthenticationContext context, string resourceId)
    string accessToken = null;
    AuthenticationResult result = null;
    ClientCredential cliCred = new ClientCredential("xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx", "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy=");
    result = await context.AcquireTokenAsync(resourceId, cliCred);
    accessToken = result.AccessToken;
    return accessToken;
    and my AdalException is
    AADSTS70001: Application with identifier xxxxx-xxxx-xxxx-xxx-xxxxx was not found in the directory api.office.com
    thx for any Help
    Maciej 

    Hi,
    What the application type did you develop with: Web Application or Windows Client Application?
    To use Office 365 API in ASP.NET Web Application, I suggest you referencing the sample project
    O365-ASPNETMVC-Start.
    internal static async Task<OutlookServicesClient> EnsureOutlookServicesClientCreatedAsync(string capabilityName)
    var signInUserId = ClaimsPrincipal.Current.FindFirst(ClaimTypes.NameIdentifier).Value;
    var userObjectId = ClaimsPrincipal.Current.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier").Value;
    AuthenticationContext authContext = new AuthenticationContext(SettingsHelper.Authority, new ADALTokenCache(signInUserId));
    try
    DiscoveryClient discClient = new DiscoveryClient(SettingsHelper.DiscoveryServiceEndpointUri,
    async () =>
    var authResult = await authContext.AcquireTokenSilentAsync(SettingsHelper.DiscoveryServiceResourceId,
    new ClientCredential(SettingsHelper.ClientId,
    SettingsHelper.AppKey),
    new UserIdentifier(userObjectId,
    UserIdentifierType.UniqueId));
    return authResult.AccessToken;
    var dcr = await discClient.DiscoverCapabilityAsync(capabilityName);
    return new OutlookServicesClient(dcr.ServiceEndpointUri,
    async () =>
    var authResult = await authContext.AcquireTokenSilentAsync(dcr.ServiceResourceId,
    new ClientCredential(SettingsHelper.ClientId,
    SettingsHelper.AppKey),
    new UserIdentifier(userObjectId,
    UserIdentifierType.UniqueId));
    return authResult.AccessToken;
    catch (AdalException exception)
    //Handle token acquisition failure
    if (exception.ErrorCode == AdalError.FailedToAcquireTokenSilently)
    authContext.TokenCache.Clear();
    throw exception;
    return null;
    For Windows client application, you could get the token by using the code as following:
    private async void GetToken()
    string authority = "https://login.windows.net/Common";
    AuthenticationContext authenticationContext = new AuthenticationContext(authority);
    string discoveryResourceId = "https://api.office.com/discovery/";
    String clientId = "{Client ID}";
    Uri redirectUri = new Uri("http://localhost/{return GUID}");
    var token = authenticationContext.AcquireToken(discoveryResourceId, clientId, redirectUri);
    Regards,
    Jeffrey
    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.

  • Problem with database schema objects in the entity object wizard

    Hi All,
    When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to select the synonym check box.
    Can any of you folks tell me how to enable the database schema objects (check boxes for tables,synonyms...).
    Thanks in Advance.
    Raja.M

    Make sure your using rite version of jdeveloper..
    Make sure your using apps schema and check whether your able perform DML operations in the schema vis sql developer.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • How can I create schema?

    Hi all.
    I've used oracle 9i 9.2.0.3 database.
    I want to create schema using oemapp console. But I can't.
    I've thought that a schema might be created when user's created. But when I created a user, a releated schema was not created.
    How can I create schema which has a user name?

    I've thought that a schema might be created when
    user's created. But when I created a user, a releated
    schema was not created.
    How can I create schema which has a user name? From the Oracle® Database Concepts manual:
    "A schema is a collection of logical structures of data, or schema objects. A schema is owned by a database user and has the same name as that user. Each user owns a single schema."
    So, in a way, you can consider both concepts as being identical, i.e. when you create a user, you automatically create the corresponding (empty) schema. The schema can then be enhanced by creating additional objects under the authority of the user who owns it.

  • How can create schema from this document.

    Thank you for reply~
    The following is that I have.
    <?xml version='1.0'?>
    <conference>
    <proceedings key="AlbenR00">
    <pro_book>
    <editor>Lauralee Alben</editor>
    <editor>Michael Rigsby</editor>
    <title>Envisioning the E-Quarium: Strategic Design Planning for the Monterey Bay Aquarium''s Website.</title>
    <pages>452-454</pages>
    <year>2000</year>
    <booktitle>Symposium on Designing Interactive Systems</booktitle>
    <series> <--declared with ANY in DTD
    <href>db/conf/eld.htm</href>
    <source>Information Retrieval</source>
    </series>
    </pro_book>
    </proceedings>
    </conference>
    I want to create DB schema from this document, but because I don't know how the document is stored in Oracle8i with object-relational schema when the document has more two level deep.
    (In sample of XSU,all XML documents has only one level deep.)
    Would you create schema from above simple document,please? It will be very helpful to me!!
    Thank you for reading my e-mail.

    Just stop using it and remove any data from your profile that you don't want there. You can't actually remove your account or your old posts from the server.
    If you have registered to have notification emails sent to you, click 'My Stuff' at top right, select 'Preferences' , then in the next page select the 'Email Notification Preferences' tab and click all the 'No' radio buttons. Then click 'Save'.
    If you already have notifications set on some threads you will still get emails from them. Click on your username at the top, then under 'Actions' in the right sidebar, select "'Manage email notifications.' This will show the threads you've set up notifications on in the past. Select those you want to stop and click the 'Remove Selected Notifications' button at bottom.

  • How to re-configure dropped "SYSTEM" schema objects

    Hi,
    I have scripts which is used to drop the tables,indexes,packages,views,triggers and sequence of a particular user.
    Unfortunated, I ran the script when i was logged in as "SYSTEM". So the table, views , indexes, packages and triggers were dropped .
    Is there any way or script to recover the objects which are belogs to SYSTEM user.
    Please help me..
    Thanks in advance.

    Unfortunately I am on 9i.
    Does anyone know I could create the login in the production DB, script the SYSTEM schema tables (structure only) and objects from another 9i DB and then run them into the newly created schema if that would work or is there data placed in those tables on install that I would be missing if I did that?

  • Access schema objects without having to specify the user.

    I've just created a role in a schema and assigned some priveleges.Then I created a user and granted the role to it. But as the newly created user is not the owner of the schema when I say a simle select query like this:
    SELECT EMLOYEENAME FROM EMPLOYEES
    I get "table or view does not exist" error. Is there a way I can wirte refer to objects in this schema without having to indicate the owner. So instead of writing SCOT.EMPLOYEES I want to write just EMPLOYEES.

    >
    I get "table or view does not exist" error. Is there a way I can wirte refer to objects in this schema without having to indicate the owner. So instead of writing SCOT.EMPLOYEES I want to write just EMPLOYEES.
    >
    Create a public synonym for the object.
    CREATE PUBLIC SYNONYM EMP32 FOR SCOTT.EMP;Then you do not need to specify the schema.
    --- edited to add doc reference
    See CREATE SYNONYM in the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_7001.htm
    >
    CREATE SYNONYM Purpose
    Use the CREATE SYNONYM statement to create a synonym, which is an alternative name for a table, view, sequence, operator, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym. A synonym places a dependency on its target object and becomes invalid if the target object is changed or dropped.
    >
    Edited by: rp0428 on Apr 5, 2012 10:56 PM

  • Desired change to CREATE SCHEMA

    Create Schema command allows multiple create table, create view and grant statements to be grouped together so that if one fails, none of them are actioned. This is excellent for "production release" scripts, as it means that we don't have to back out those changes that worked before re-running the corrected script.
    However, a lot of our database changes are of the "ALTER TABLE ADD" or "ALTER TABLE MODIFY" these days, since we have tables for all our logical objects. I'd dearly love these commands to be added to CREATE SCHEMA (or some similar command) so that they could also be "rolled back" in a group.
    Am I crazy or would this be useful to others?

    Create Schema command allows multiple create table,
    create view and grant statements to be grouped
    together so that if one fails, none of them are
    actioned. This is excellent for "production release"
    scripts, as it means that we don't have to back out
    those changes that worked before re-running the
    corrected script.
    However, a lot of our database changes are of the
    "ALTER TABLE ADD" or "ALTER TABLE MODIFY" these days,
    since we have tables for all our logical objects. I'd
    dearly love these commands to be added to CREATE
    SCHEMA (or some similar command) so that they could
    also be "rolled back" in a group.
    Am I crazy or would this be useful to others?It seems like a sensible addition to me, though I personally would be looking for an ALTER SCHEMA command.
    I have to say though that the CREATE SCHEMA command looks rather limited to me in general - no CREATE INDEX, no CREATE PROCEDURE and so on. The wording in the docs
    The CREATE SCHEMA statement supports the syntax of these statements only as defined by standard SQL, rather than the complete syntax supported by Oracle Database
    rather suggests to me that this a compatibility only statement rather than an actively developed one (which is a shame).
    Niall Litchfield
    http://www.orawin.info/
    Message was edited by:
    Niall Litchfield

Maybe you are looking for