Jdev ea1 database manual reconciling problem

The offline database object manual reconciling wizard compare off-line defintion with a target schema in a target database. The reconciling comparison take care of the schema name and declare an object has dropped in the off-line list and new in the target schema if the object is not store in the same schema in both off-line and on-line list.
This is a problem because we have very ofter different implementation (deployment) of the off-line objects and it is not possible to use the alter option in this case, just to add, change or remove some part of the corresponding object.
I think that the wizard has to take care of one option that ask it not to take care of the schema and just compare the object definition.

yes we never use the reconciling against the database directly because the installation/deployment is done by the dba. We use jdev to prepare, check and complete the scripts.
Do you remember the problem we have with physical metadata added when we import a table definition from the database ? I think definitively that these physical metadata are very interesting but they are to be associated with a deployment connection and added when the tables are generated for this location. We may have one to many relationships between the logical object definition (table name, attributes, ...) and physical object definition (tablespace, size, parallel option, partition, ...) depending on the deployment platform and release.

Similar Messages

  • Problem in creating database manually

    Hello ,
    I am trying to make database manually and i am successfully created it,but when i am trying to run catalog.sql and catproc.sql my database get dismount automatcally.i also tried to upgrade it via search results on problem but i found this below error when i am typing startup.
    help me.
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist

    970884 wrote:
    Hello ,
    I am trying to make database manually and i am successfully created it,but when i am trying to run catalog.sql and catproc.sql my database get dismount automatcally.i also tried to upgrade it via search results on problem but i found this below error when i am typing startup.
    help me.
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't existAre you running Windows? Is your db service up and running? Also, before you attempt to start teh db, issue +set oracle_sid=<your_db_name>
    Aman....

  • Problem intergrating clearcase in jdev EA1.

    I can't intergrate clearcase with jdev EA1. The version option only display CVS. The earler version displayed clearcase and CVS.
    Thanks,
    Tony

    Hi Shay, I am not able to check for updates at my client site. Is there a download url for the clearcase extension?
    Thanks,
    Tony

  • Jdev EA1 return error in running an already tested war file (imported war )

    Hi
    Thank you for reading my post.
    I have an Odd problem with Jdev EA1
    I have a war file , I import it into Jdev (new /project/projects from war file)
    I should mention that this war file developed in Rational application developer (Struts based ,database, higly use of other Taglibs)
    Now when i try to run my imported application , it does not run at all, it stops with some errors :
    for example in compiler log it return error for following line :
         <logic:redirect page="<%=session.getAttribute("LastPage").toString() %>" />
    [/Code]
    the  error is :
         Error(29): Attribute: LastPage").toString() is not a valid attribute name
            Error(29): Attribute: % is not a valid attribute name
            Error(30): Encountered end tag </logic:present> without corresponding start tag.
    Also it returns :
         Error(32): Tag attempted to define a bean which already exists: currentModel
            Error(33): Tag attempted to define a bean which already exists: currentName
    for the following code :
    [CODE]
    <logic:equal name="Language" value="en">
         <SCRIPT SRC="language-en.js"></SCRIPT>    /////line 32
         <SCRIPT SRC="ctst.js"></SCRIPT>               ////line 33          
    </logic:equal>I import it into netbeans and it run correctly on tomcat, i deploy it inot sun Java apps and it works ok.
    Even i tried Jboss , geronimo to test my application corectness
    Can you tell me what is wrong ?

    Hi
    I think its serious , Jdev Does not works correctly with a correct war file ,
    some one from Jdev team should think about it.

  • Creating standby or logical standby database manually?

    Hi,
    I have to create 4 logical standby databases on a Linux Red Hat 64-bits server.
    The primary databases reside on another Linux Red Hat 64-bits server.
    The oracle database version is 10.2.0.3.
    The question is as follows:
    Should I create the logical standby databases manually or should I do it with the Oracle EM Grid Control?
    I have read that the creation of standby databases with the Grid Control is very straightforward, but I really want to read of some of your experiences.
    I have read that there are some problems in Grid Control with the test of Failover and Switchover.
    Please advice.

    Hi,
    It all depends.
    I assume you don't backup your database to tape using RMAN.
    Do you backup your database to disk using RMAN?
    You would need to set up NFS links from your standby server to the primary server.
    For this purpose, in 9i, I made sure my disk backup ended up in <directory>/backup/<nodename>, so I could easily set up a NFS link.
    If you do it manually, you need to have made a full database RMAN backup first.
    Probably Grid Control is taking care of this for you.
    I have done it once using database control in 10g. It is really simple, and you just have to click a few buttons and sit back.
    Doing it manually is slightly more work: you need to make sure parameters are correct and you need to write a (generic) script of less than 10 lines.
    You probably do have more control over it, though RMAN's duplicate database command is robust and can be restarted easily.
    I can't answer your last remark.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Creating Oracle 11g Database Manually on ASM on 11g R2 Grid

    Hi:
    Earlier added this issue alongwith Grid installation. Only Jorg replied to me but could not find a complete solution. So thought of starting a new thread.
    Wanted to know if any one of you have successfully created Oracle Database Manually on ASM on Oracle 11g R2 Grid.
    I have installed Oracle 11g R2 grid (grid user) and Oracle 11g R2 DB software succesfully (oracle user).
    Now trying to create a database manually on ASM as Oracle user.
    First I create an pfile in $ORACLE_HOME/dbs
    then I started by db on nomount stage. when I create a spfile on to my ASM diskgroup I get
    I have created 2 diskgroups '+DGASMSPFILE' (ASM Spfile) and '+DGDBDATA' (for database)
    Grid is up and running.
    From Oracle user:
    Have created a sample initDBRAC.ora
    Now I want to create Oracle Database Global Spfile into '+DGASMSPFILE'
    export ORACLE_SID=DBRAC
    $ sqlplus / as sysdba
    SQL> create spfile='+DGASMSPFILE/spfileDBRAC.ora' from pfile;
    ORA-17502:ksfdcre:4 failed to create file +DGASMSPFILE/spfileDBRAC.ora
    ORA-12547: TNS lost contact
    "Oracle user" should have privileges to access ASM diskgroup right? What is the permission set for /dev/sdc* (earlier it was root:oinstall I changed it to grid:oinstall even then no difference.
    Trace output:
    ASM_DISKSTRING= /dev/sdc*
    ***********************************************************************1st trace file
    Fatal NI connect error 12547, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/crs/11.2.0/grid/bin/oracle)(ARGV0=oracle+ASM1_o000_dbrac)(ENVS='ORACLE_HOME=/crs/11.2.0/grid,ORACLE_SID=+ASM1')(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(enable=setuser)(CONNECT_DATA=(CID=(PROGRAM=oracle@skyit6)(HOST=skyit6)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
    Time: 01-JUN-2011 01:27:07
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12547
    TNS for Linux: Version 11.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
    Time: 01-JUN-2011 01:27:07
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12547
    TNS-12547: TNS:lost contact
    ns secondary err code: 12560
    nt main err code: 517
    TNS-00517: Lost contact
    nt secondary err code: 32
    nt OS err code: 0
    ERROR: Failed to connect with connect string: (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/crs/11.2.0/grid/bin/oracle)(ARGV0=oracle+ASM1_o000_dbrac)(ENVS='ORACLE_HOME=/crs/11.2.0/grid,ORACLE_SID=+ASM1')(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(enable=setuser))
    Wed Jun 01 01:27:07 2011
    ERROR: slave communication error with ASM; terminating process 16772
    Errors in file /oraeng/app/oracle/product/diag/rdbms/dbrac/DBRAC/trace/DBRAC_ora_16772.trc:
    Regards
    Dinesh

    Hi Sebastian:
    When I installed grid software, oracle db software and created oracle db manually things worked fine.
    When I restart the RAC environment I found the following issues:
    1) all the resources does not come up automatically, once i issue crs_start -all all the services comes up. (most of the resources related to node1 comes up but cluster resources related to node2 does not come up) crsctl check crs shows that things are online.
    2) wanted to recreate a database manually after restarting the RAC enviroment. To start of as usual tried to create a spfile in ASM disk "Create spfile='+DGDBSPFILE' from pfile'
    I get ORA-17502:ksfdcre:4 failed to create file +DGDBSPFILE'
    12547: TNS: lost contact
    looks like permission problem.
    The same command worked before restarting the RAC environment. Pls let me know if I am missing out anything.
    Is it because i am unable to access ASM instance.
    3) As you had mentioned tried to set the sbit by executing the following statement:
    $ /opt/grid/bin/setasmgidwrap o=/opt/oracle/product/11.2.0/db/bin/oracle
    should this be put into "rc" folder in linux so that it gets set everytime linux starts up. because once i restart the permission get changed.
    I should execute it from grid user to change the permission of 'oracle' binary in 'oracle user' right?
    Can you explain me why is this required (sbit).
    Thanks.
    Regards
    Dinesh

  • JDev EA1 Error with JAZN/Security Roles/Authentication

    I have a current JSF application created under JDev 10.1.3 Preview which runs fine, but under JDev EA1 it crashes.
    The application has a JAZN definition with a realm and user defined. The user is also tied to a security role.
    In the web.xml I have a security role defined and security constraints. I also have the security-role-mappings in the orion-application.xml for deployment which uses OID to authenticate.
    This all works fine in JDev 10.1.3 preview.
    When I run the application in JDev EA1, the login dialog does not appear and the application crashes because it can't authenticate who is using the application. I have deleted and recreated the Jazn user and security roles under EA1.
    I have noticed that JDev is now reporting the "<security-constraint>" tag in web.xml is an error now.
    Any ideas on what's wrong?
    Thanks

    We're using SSO, so we haven't written our own login handler. The orion-application.xml has the "<jazn-web-app auth-method="SSO"/>" tag in it. We let SSO handle the login. You can write your own login handler if you wanted to. I think there's several threads about doing it. We wanted to try and use SSO and not have to write the piece to do the login.
    orion-application.xml:
    <jazn provider="LDAP"
    location="ldap://my.company.com:<port number>"
    default-realm="my_realm_here">
    <jazn-web-app auth-method="SSO"/>
    </jazn>
    The way we approached it, we have a User and Visit object. The User object just holds some data:
    public class User implements Serializable
    private String userid;
    private String name;
    private String email;
    private Date loginTime;
    The faces-config.xml is like this:
    <!--========User Bean=========-->
    <managed-bean>
    <managed-bean-name>user</managed-bean-name>
    <managed-bean-class>com.mycompany.User</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>queryService</property-name>
    <value>#{queryservicebean}</value>
    </managed-property>
    </managed-bean>
    We're using Spring to inject the "queryservicebean". You may not need this section. We're having to grab data from a database table. So you can probably skip that "<managed-property>" section.
    The section I think you are really asking about is the ViewHandler. You probably need to look at extending the ViewHandler to populate your user object.
    public class AuthenticatingViewHandler extends ViewHandler{...}
    You will probably need to look at adding code in the createView and restoreView methods.
    Something like:
    public class AuthenticatingViewHandler extends ViewHandler
    private final ViewHandler _base;
    public AuthenticatingAurepViewHandler(ViewHandler base)
    _base = base;
    public UIViewRoot createView(FacesContext facesContext, String viewId)
    viewId = loadUser(facesContext,viewId);
    return _base.createView(facesContext, viewId);
    } //END createView(FacesContext facesContext, String viewId)
    public UIViewRoot restoreView(FacesContext facesContext, String viewId)
    viewId = loadUser(facesContext,viewId);
    return _base.restoreView(facesContext,viewId);
    } //END restoreView(FacesContext facesContext, String viewId)
    --Then "loadUser" would populate your User object:
    public String loadUser(FacesContext facesContext, String viewId)
    String userId = facesContext.getExternalContext().getRemoteUser();
    User user = (User) JSFUtils.getManagedBean(ViewConstants.USER);
    -- Set the userid from OID in your User object
    user.setUserid(userId);
    -- Note: You may need to do some parsing on your user id string from OID.
    -- Do more stuff here, may switch to a differnt viewId if needed, like an error page.
    return viewId;
    } // END loadUser(FacesContext facesContext, String viewId)
    } //END AuthenticatingViewHandler
    The "JSFUtils.getManagedBean" uses the valuebinding to get the User bean from the FacesContext. We also carry a boolean isUserLoaded in the User object so we're not executing the loadUser code each time a view is rendered. The Visit object just has a navigation trace and other things of interest to us, so you may not care about it.
    A lot of this is from Adam Wiener's post on Sun's JSF forum. I think there's a couple of ways to approach this, with our requirements this works out better. If anybody else has any suggestions, it would be great to hear about them.
    As always, hope it helps out with what you are doing and thanks for the chocolate.

  • Create database manually.unexpected error incountered

    I am not able to create database manually.unexpected error incountered why?
    Same step is worked in another system
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 97589952 bytes
    Fixed Size 453312 bytes
    Variable Size 46137344 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 667648 bytes
    SQL> create dtabase;
    create dtabase
    ERROR at line 1:
    ORA-00901: invalid CREATE command
    SQL> ed
    Wrote file afiedt.buf
    1 CREATE DATABASE icici
    2 LOGFILE GROUP 1 ('F:\oracle\oradata\icici\logfile\redo01.log') SIZE 10M,
    3 GROUP 2 ('F:\oracle\oradata\icici\logfile\redo02.log') SIZE 10M,
    4 GROUP 3 ('F:\oracle\oradata\icici\logfile\redo03.log') SIZE 10M
    5 MAXLOGFILES 5
    6 MAXLOGMEMBERS 5
    7 MAXLOGHISTORY 1
    8 MAXDATAFILES 10
    9 MAXINSTANCES 1
    10 CHARACTER SET US7ASCII
    11 NATIONAL CHARACTER SET AL16UTF16
    12 DATAFILE 'F:\oracle\oradata\icici\datafile\system01.dbf' SIZE 100M REUSE
    EXTENT MANAGEMENT LOCAL
    13 DEFAULT TEMPORARY TABLESPACE tempts1 TEMPFILE 'F:\oracle\oradata\icici\d
    atafile\temp01.dbf' SIZE 100M REUSE
    14 UNDO TABLESPACE undotbs DATAFILE 'F:\oracle\oradata\icici\datafile\undot
    bs01.dbf'SIZE 100M REUSE
    15* AUTOEXTEND ON NEXT 5120K MAXSIZE 300M
    SQL> /
    CREATE DATABASE icici
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    SQL>

    I'll lay odds that the problem is that you've asked this database to use an UNDO tablespace called UNDOTBS, but that in your spfile (or init.ora) you've specified UNDO_TABLESPACE=UNDOTBS01 (or something similar).
    If the parameter file specifies an undo tablespace which doesn't exist, the instance blows up.
    The advice to read the alert log would be useful at this point, because the mismatch of undo tablespace names is always recorded properly there (which always makes me annoyed that the original error message can't be a bit more precise!)

  • Subcontracting reconcilation problem

    Dear all.
    In subcontracting while doing reconcilation problem is coming due to some components will send with refrence to purchase order and some will send with out refrence of  purchase order for the same purchase order for  this reconcilation problem is coming how to reconcile this please help on this.
    regards,
    vijaybhaskar

    You can reconcile challan against material document(GR with reference to p.o or Issued with reference to P.O) using J1IFQ.
    Whereas it is not possible to reconcile using J1IFQ when you issue materials without reference to p.o.
    You need to track it manually or through reports(goods issued,receipted),
    differences can be adjusted in physical inventory process with vendor special stock 'O'.

  • Why I have to start my database manually (10g)

    I always have to start my database manually why it is so.........the error is
    ORA-28547: connection to server failed, probable Oracle Net admin error (DBD ERROR: OCISessionBegin)
    Can any one help.
    Thanks

    Oh no, please ... not "The Documentation" <g>hehehe, sorry. I can't help it.
    Instead of we are trying to guess what he might have
    done wrong or what's missing.
    It might be easier for him to follow the steps listed
    in document, and tell us at which step he has problem.This is getting serious ...
    "The Documentation" AND "Steps"
    /Hans
    (To OP - please do not take this personally. It's just that each 800 posts that might have been solved by reading the manuals causes some of us get into this weird sense of humour.)

  • Error while creating database manually

    hi guru's i am getting error while creating database manually
    my sql is SQL>create database lily
      logfile   group 1 ('C:\oracle\product\10.2.0\oradata\lily\redo1.log') size 10M,
                group 2 ('C:\oracle\product\10.2.0\oradata\lily\redo2.log') size 10M,
                group 3 ('C:\oracle\product\10.2.0\oradata\lily\redo3.log') size 10M
      character set          WE8ISO8859P1
      national character set utf8
      datafile 'C:\oracle\product\10.2.0\oradata\lily\system.dbf'
                size 50M
                autoextend on
                next 10M maxsize unlimited
                extent management local
      sysaux datafile 'C:\oracle\product\10.2.0\oradata\lily\sysaux.dbf'
                size 10M
                autoextend on
                next 10M
                maxsize unlimited
      undo tablespace undo
                datafile 'C:\oracle\product\10.2.0\oradata\lily\undo.dbf'
                size 10M
      default temporary tablespace temp
                tempfile 'C:\oracle\product\10.2.0\oradata\lily\temp.dbf'
                size 10M;and i am getting following error
    create database lily
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00200: control file could not be created
    ORA-00202: control file: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\LILY\CONTROL01.CTL'
    ORA-27038: created file already exists
    OSD-04010: <create> option specified, file already exists
    code}
    Edited by: CHETAN YADAV on Jul 19, 2011 6:55 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    create database lily
      logfile   group 1 ('C:\oracle\product\10.2.0\oradata\lily\redo1.log') size 10M,
              group 2 ('C:\oracle\product\10.2.0\oradata\lily\redo2.log') size 10M,
                group 3 ('C:\oracle\product\10.2.0\oradata\lily\redo3.log') size 10M
      datafile 'C:\oracle\product\10.2.0\oradata\lily\system.dbf'  size 150M
    sysaux datafile 'C:\oracle\product\10.2.0\oradata\lily\sysaux.dbf' 150 M
      undo tablespace undo  datafile 'C:\oracle\product\10.2.0\oradata\lily\undo.dbf'  size 10M
    default temporary tablespace temp tempfile 'C:\oracle\product\10.2.0\oradata\lily\temp.dbf' size 10M;
    remove the SQL> from the a.sql script also change the system datafile size to minimum of 100mb size
    ALSO check/change the undotablespace name with your init parameter file it should match as it is in the init parameter file
    Edited by: rajeysh on Jul 19, 2011 6:59 PM

  • Error: SNAP_ADT does not exist in the database - manual check required

    Hello Friends,
    We are  performing an upgrade+migration to HDB using the DMO option(Oracle to HANA).
    We are getting below error in the phase MAIN_SHDCRE/SUBMOD_SHDDBCLONE/DBCLONE!
    Also find the output of SE11 & SE14 attached.
    SE14->
    Please help us with the manual check.
    Regards
    Sury

    Hi Sury,
    In regards to the error below:
    1EETGCLN Error: SNAP_ADT does not exist in the database -> manual check
    required
    1EETGCLN SNAP_ADT
    1EETGCLN Table does not exist
    Could you please try to activate the following tables via SE11?
    -  SNAP_ADT
    Once they are activated, Could you please repeat the phase and update the result?
    Thanks and Regards,
    James Wong
    Follow us:
    SAP System Upgrade & Update Troubleshooting Wiki Space.
    SAP Product Support Twitter  ( Hashtag: #NWUPGRADE)

  • I am not able to create database manually.unexpected error incountered why?

    I am not able to create database manually.unexpected error incountered why?
    Same step is worked in another system
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 97589952 bytes
    Fixed Size 453312 bytes
    Variable Size 46137344 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 667648 bytes
    SQL> ed
    Wrote file afiedt.buf
    1 CREATE DATABASE icici
    2 LOGFILE GROUP 1 ('F:\oracle\oradata\icici\logfile\redo01.log') SIZE 10M,
    3 GROUP 2 ('F:\oracle\oradata\icici\logfile\redo02.log') SIZE 10M,
    4 GROUP 3 ('F:\oracle\oradata\icici\logfile\redo03.log') SIZE 10M
    5 MAXLOGFILES 5
    6 MAXLOGMEMBERS 5
    7 MAXLOGHISTORY 1
    8 MAXDATAFILES 10
    9 MAXINSTANCES 1
    10 CHARACTER SET US7ASCII
    11 NATIONAL CHARACTER SET AL16UTF16
    12 DATAFILE 'F:\oracle\oradata\icici\datafile\system01.dbf' SIZE 100M REUSE
    EXTENT MANAGEMENT LOCAL
    13 DEFAULT TEMPORARY TABLESPACE tempts1 TEMPFILE 'F:\oracle\oradata\icici\d
    atafile\temp01.dbf' SIZE 100M REUSE
    14 UNDO TABLESPACE undotbs DATAFILE 'F:\oracle\oradata\icici\datafile\undot
    bs01.dbf'SIZE 100M REUSE
    15* AUTOEXTEND ON NEXT 5120K MAXSIZE 300M
    SQL> /
    CREATE DATABASE icici
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    SQL>

    Check the alert log. Paste the end of the file over here.
    Yoann.

  • Database column alias problem

    When joining the firstname and surname fields in my inital SQL query of my interactive report i.e
    INITCAP(INDSNAME)||' '||INITCAP(INDFNAME) AS FULLNAME,
    When clicking through to the record detail page I am getting the following error from the page item where in the source I am specifying FULLNAME under Source value or expression
    Column FULLNAME not found in table MYTABLENAME
    How can I get around this?
    Many Thanks

    Hi Bas
    Thanks - it will just be a view as basically I just want to print the data via jasper
    In my IA report under column attributes there is one called FULLNAME which is derived from INITCAP(INDSNAME)||' '||INITCAP(INDFNAME) AS FULLNAME,
    So how can I get the data displayed in the FULLNAME column in the IA report into a single record view.  At the moment my IA report the Link Column is currently linked to a 'Link to custom target'
    the target is a 'Page in this Application'  in this case page 9
    and in Item1 under Name the value is P9_ROWID and the value is #ROWID#
    Database column alias problem 

  • Can I create a non-Unicode database manually via create database segment

    Hi
    As unicode encode use more bytes than 2-bytes encode (for instance, ZHS16GBK), and XE has the limit with 4GB totally. So, can I create a non-Unicode (for instance, ZHS16GBK) database manually via create database segment? or I just could use unicode?
    Thanks.
    Samuel

    Could you load or paste this scripts? Well, the script is (obviously) a shell script, useless on Windows, unless you have some emulator (CygWin, MKS toolkit or similar). The following is the Sql part :
    sqlplus /nolog <<END
    spool xe_createdb.log
    connect sys/oracle as sysdba
    startup nomount pfile=$filedir/init$ORACLE_SID.ora
    whenever sqlerror exit;
    create database
      maxinstances 1
      maxloghistory 2
      maxlogfiles 16
      maxlogmembers 2
      maxdatafiles 30
    datafile '$filedir/system.dbf'
      size 200M reuse autoextend on next 10M maxsize 600M
      extent management local
    sysaux datafile '$filedir/sysaux.dbf'
      size 10M reuse autoextend on next  10M
    default temporary tablespace temp tempfile '$filedir/temp.dbf'
      size 20M reuse autoextend on next  10M maxsize 500M
    undo tablespace undo datafile '$filedir/undots1.dbf'
      size 50M reuse autoextend on next  5M maxsize 500M
    --character set al32utf8
    character set $dbcharset
    national character set al16utf16
    set time_zone='00:00'
    controlfile reuse
    logfile '$filedir/log1.dbf' size 50m reuse
           , '$filedir/log2.dbf' size 50m reuse
           , '$filedir/log3.dbf' size 50m reuse
    user system identified by oracle
    user sys identified by oracle
    -- create the tablespace for users data
    create tablespace users
      datafile '$filedir/users.dbf'
      size 100M reuse autoextend on next 10M maxsize 5G
      extent management local
    -- install data dictionary views:
    @?/rdbms/admin/catalog.sql
    -- run catblock
    @?/rdbms/admin/catblock
    -- run catproc
    @?/rdbms/admin/catproc
    -- run catoctk
    @?/rdbms/admin/catoctk
    -- run pupbld
    connect system/oracle
    @?/sqlplus/admin/pupbld
    @?/sqlplus/admin/help/hlpbld.sql helpus.sql;
    -- run plustrace
    connect sys/oracle as sysdba
    @?/sqlplus/admin/plustrce
    -- Install context
    @?/ctx/admin/catctx oracle SYSAUX TEMP NOLOCK;
    connect CTXSYS/oracle
    @?/ctx/admin/defaults/dr0defin.sql "AMERICAN"
    -- Install XDB
    connect sys/oracle as sysdba
    @?/rdbms/admin/catqm.sql oracle SYSAUX TEMP;
    connect SYS/oracle as SYSDBA
    @?/rdbms/admin/catxdbj.sql;
    connect SYS/oracle as SYSDBA
    @?/rdbms/admin/catxdbdbca.sql 0 8080;
    connect SYS/oracle as SYSDBA
    begin dbms_xdb.setListenerLocalAccess( l_access => TRUE ); end;
    -- Install Spatial Locator
    connect sys/oracle as sysdba
    create user MDSYS identified by MDSYS account lock;
    @?/md/admin/catmdloc.sql
    create spfile='$filedir/spfile.ora' from pfile
    alter user anonymous account unlock
    disconnect
    -- recompile invalid objects
    connect sys/oracle as sysdba
    begin dbms_workload_repository.modify_snapshot_settings(interval => 0); end;
    begin dbms_scheduler.disable('AUTO_SPACE_ADVISOR_JOB', true); end;
    spool off
    exit
    ENDWords prefixed with $ are OS variables, you have to substitute them with your values.

Maybe you are looking for