Create Database manual

Hello
I have a computer virtual centos 5 on my pc. I'm testing on the creation of a database by simply using the "create database" command plain based on the book by Tom. But when I try to execute it I get an ORA-01092. This is what contains the log of alerts:
Errors in file /u01/app/oracle/product/10.2.0/db10g/rdbms/log/ora10g_ora_6389.trc:
ORA-01501: CREATE DATABASE failed
ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 1740
ORA-00604: error occurred at recursive SQL level 1
ORA-04031: unable to allocate 4108 bytes of shared memory ("shared pool","insert into ts$ (ts#,n
The trace file contains:
===============================
End 4031 Diagnostic Information
===============================
Warning: out of shared memory loading library cache object [handle=253c8238] 
insert into ts$ (ts#,name,online$,contents$,undofile#,undoblock#,blocksize, dflmaxext,dflinit,df
lincr,dflextpct,dflminext,dflminlen,inc#,owner#,scnwrp,scnbas,pitrscnwrp,pitrscnbas,dflogging, a
ffstrength,bitmapped,plugged,directallowed,flags,spare1,spare2) values (:1,:2,:3,:4,:5,:6,:7,:8,
:9,:10,:11,:12,:13,1,:14,:15,:16,:17,:18,:19,0,:20,:21,1,:22,:23,:24)
ORA-00604: error occurred at recursive SQL level 1
ORA-04031: unable to allocate 4108 bytes of shared memory ("shared pool","insert into ts$ (ts#,n
ame,on...","Typecheck","seg:kggfaAllocSeg")
Offending statement at line 1740
create table bootstrap$
( line#         number not null,                       /* statement order id */
  obj#          number not null,                            /* object number */
  sql_text      varchar2(4000) not null)                    /* statement */
  storage (initial 50K)            /* to avoid space management during IOR I */
ORA-01501: CREATE DATABASE failed
ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 1740
ORA-00604: error occurred at recursive SQL level 1
ORA-04031: unable to allocate 4108 bytes of shared memory ("shared pool","insert into ts$ (ts#,n
ame,on...","Typecheck","seg:kggfaAllocSeg")
I have the suspicion that there is a memory problem. I'm still not well informed in this part, but looking at some notes that I check these settings:
SQL> startup nomount;
ORACLE instance started.

Total System Global Area  113246208 bytes
Fixed Size                  1218004 bytes
Variable Size              58722860 bytes
Database Buffers           50331648 bytes
Redo Buffers                2973696 bytes
SQL> show parameter sga

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
lock_sga                             boolean     FALSE
pre_page_sga                         boolean     FALSE
sga_max_size                         big integer 108M
sga_target                           big integer 0
SQL> show parameter pool

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
buffer_pool_keep                     string
buffer_pool_recycle                  string
global_context_pool_size             string
java_pool_size                       big integer 24M
large_pool_size                      big integer 0
olap_page_pool_size                  big integer 0
shared_pool_reserved_size            big integer 1677721
shared_pool_size                     big integer 32M
streams_pool_size                    big integer 0
SQL> 
I tried to do some resizing:
SQL> alter system set shared_pool_size=128M
  2  /
alter system set shared_pool_size=128M
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-04033: Insufficient memory to grow pool
This virtual machine has a 700 + allocated memory. Could someone give me some advice on how to fix this? I get this erros when I run the 'create database' of sqlplus after startup nomount command. Thank you very much.

Kind regards
Rhani

you will not be able to do much in 700 MB.

For the DATABASE to CREATE your SHARED_POOL_SIZE should be at least 250 MB, 400 MB preference. Therefore, you must first increase your SGA_MAX_SIZE at 500 MB!

Tags: Database

Similar Questions

  • creation of listener for the manually created database

    Hi all

    Oracle 11 g 2

    RHEL 5

    I have a server with a single database that is installed with the default listener listen to 1521.

    Now, I'll create another data base to help create database statement. I want to have a separate listener called listener2 on port 1522. How the database manually created to listen to listerner2...

    Kind regards

    1 / created the database manually

    Using SQLPLUS > CREATE DATABASE...

    For additional info check documentation for version you use.

    2 / create a new listener

    USE NETCA or UPDATE YOUR LISTENER. ORA or use srvctl

    For additional info check documentation for version you use.

    3 / update the database using the parameter local_listener with the new name of listening port?

    Using sqlplus > alter system set local_listener = scope = <> = sid<>

    For additional info check documentation for version you use.

  • Port number for a manually created database

    Hi all

    I have an original database installed using the installer regular Oracle on the default port 1521.
    Then I created the PeopleSoft database by using create database command. I aksed never of port number in this manual steps. Now, im in the process of setting up Enterprise Manager, here I need to enter the port number. IM wondering would it be same as initial database 1521... or? where can I see this information.

    Thanks in advance.

    RamaN says:
    Hi all

    I have an original database installed using the installer regular Oracle on the default port 1521.
    Then I created the PeopleSoft database by using create database command. I aksed never of port number in this manual steps. Now, im in the process of setting up Enterprise Manager, here I need to enter the port number. IM wondering would it be same as initial database 1521... or? where can I see this information.

    Raman,

    I think that there is a confusion of a lot of time that you are experiencing. First of all, 1521 is not the port number of the EM (its not supposed to be) but for the listener . So don't really use you it for something else, and just for the listener, and there is a single earpiece only which should be enough for all of the databases, you have. For the initial data, the default port for the EM, is 1158. This can vary according to the configuration you have. There is a file that is created and stores all the ports used in the parties initials, portlist.ini . It would be in your ORacle home. You can see the port number used by the MS of the initial database from there. For the manual creation of the MA, Oracle will ask you the port number for the listener, not where it must run the MS. If you enter 1521 only.

    HTH
    Aman...

  • Question about Enterprise Manager for a manually created database

    DB versions: 10 gr 2, 11g

    I will create 10 gr 2, database 11G manually (without using DBCA). Enterprise manager be installed automatically if I use the CREATE DATABASE command like
    create database "mnprod"
    user sys identified by mnsys
    user system identified by mnsys
        logfile
        group 1 (
            '/u02/oradata/redologs/ora238_redo1a.log',
            .
            .
            .
            .

    Enterprise manager be installed automatically if I use the CREATE DATABASE command like
    No, you need to expilicity create "oem" repository 'DBCA' or 'EMCA '.

    Kind regards
    Taj

  • Tablespace not specified in the CREATE DATABASE command

    Hello

    I'm cloning a database using "backup controlfile to trace", copy the data to another server, do a restore using backup controlfiles and deliver an open resetlogs.
    The last steps in the case of "manually", not by the script "create controlfile ':

    RECOVER DATABASE USING BACKUP CONTROLFILE

    ALTER DATABASE OPEN RESETLOGS;
    ALTER TABLESPACE TEMP ADD TEMPFILE...

    Xxx_TEMP ALTER TABLESPACE ADD TEMPFILE

    Yyy_TEMP ALTER TABLESPACE ADD TEMPFILE

    It works very well, however in the alert log this message appears:

    ATTENTION: by default temporary
    Tablespace not specified in the CREATE DATABASE command

    Default temporary tablespace will be necessary for a locally managed database in future release

    Mount of redo thread 1, with mount id 801397961

    Source and target system temp tablespace are defined:

    select * d atabase_properties property_name as « % TABLESPACE »;

    TEMP DEFAULT_TEMP_TABLESPACE name of the default temporary tablespace

    DEFAULT_PERMANENT_TABLESPACE USERS name of default permanent tablespace

    Can you give me some information on it?

    What command 'create database' is incorrect (without default TS)?

    Concerning

    Christian

    Hello

    Orders of data files to create temporary tablespaces are in the Script SQL generated, as last orders to be released.

    1. the first thing you do not database, in fact, create by rebuilding the controlfile based on existing database files.

    2. Secondly, your script controlfile is created based on data files, the next step if adding temporary file what I said in previous post.

    3. from your message it's just adding/WARNING provided by oracle - since before re - build my database - old controlfile knows we tablesapce temp. When you re-built your database it shows not know a temporary file.

    Hope that helps

    -Pavan Kumar N

  • Failed to CREATE DATABASE

    Hi all

    OS - LINUX 7

    DB - 12.1.0.2

    During the creation of the DB first time I run the script to create the database during the race, I encountered the error below. Please advice.

    Create database 'PMD '.

    *

    ERROR on line 1:

    ORA-01092: ORACLE instance is complete. Disconnection forced

    ORA-01501: CREATE DATABASE failed

    ORA-01618: redo thread 2 is not enabled - can not mount

    Process ID: 12023

    Session ID: 29 serial number: 19469

    Thank you.

    Hello

    ALTER DATABASE ADD LOGFILE THREAD 2

    GROUP 4 ("path/redoPMDt2g4a.log',

    RE-USE of SIZE 10 m ' path/redoPMDt2g4b.log'),

    GROUP 5 ("path/redoPMDt2g5a.log',

    RE-USE of SIZE 10 m ' path/redoPMDt2g5b.log'),

    GROUP 6 ("path/redoPMDt2g6a.log',

    RE-USE of SIZE 10 m ' path/redoPMDt2g6b.log');

    ALTER DATABASE ENABLE PUBLIC THREAD 2.

    Why don't you enabling thread 2? you have changed your settings for cluster?

    Update: they are initialized to start it himself, you shouldn't do it, please check pfile

    -Pavan Kumar N

  • How can I create database in the xi of adobe acrobat professional to collect information of forms to fill out?

    How can I create database in the xi of adobe acrobat professional to collect information of forms to fill out?

    Hey bellaj.jenson,

    Please see the below mentioned KB doc for the same link:

    Acrobat help. Create and distribute PDF forms

    See also: data collection with forms (PDF Forms)

    Hope these helps.

    Kind regards

    Ana Maria

  • Is there a way to generate the command CREATE DATABASE from the DB?

    Version: 11.2.0.3

    Is there a way to generate the CREATE DATABASE command from an existing database?

    You can empty the CONTROLFILE to trace and you'll get a CREATE CONTROLFILE statement which you can turn into a CREATE DATABASE statement.

    ------------

    Sybrand Bakker

    Senior Oracle DBA.

  • create database command

    I m using oracle 10g release2 version 1
    My oracle_sid is mydb
    I opened it in nomount State
    I am trying to create a database using this command

    CREATE DATABASE MyDemo
    MAXDATAFILES 100
    DATAFILE ' / u01/app/oradata/MyDemo/datafile/mydemo01.dbf' SIZE 250 M
    MEASUREMENT OF DEFAULT LOCAL MANAGEMENT
    Temp TABLESPACE TEMPORARY TEMPFILE ' / u01/app/oradata/MyDemo/temp.dbf' 50 m size
    DATAFILE UNDO TABLESPACE 'UndoTbs1' ' / u01/app/oradata/MyDemo/undo.dbf' size 10 m
    CHARACTER SET WE8ISO8859P1
    LOGFILE ' / u01/app/oradata/MyDemo/rbs01.dbf' 2m,'/u01/app/oradata/MyDemo/rbs02.dbf size ' size 2 m;

    and the error returned is the "MYDEMO' of the database does not match name parameter db_name 'mydb '.

    So tell me what to do now?

    user987018, is not only clear documentation, but the error message identifies the question fairly accurately: "error returned is the database name"MYDEMO"does not"mydb"db_name parameter

    You can consult the section: creation of a database with the CREATE DATABASE statement, you can find the DBA Administrator's Guide
    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/create003.htm#ADMIN11073

    HTH - Mark D Powell.

  • SP2-0640: not connected - create database link error Gateway

    While trying to connect through the gateway SQL by using 'Create database link','m ' SP2-0640: not connected "error. Here are the details.

    ====================================================================
    TNSNAMES.ora
    dg4msql =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (Service_name = dg4msql))
    (HS = OK)
    )
    ====================================================================
    LISTENER.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = dg4msql)
    (ORACLE_HOME = C:\product\11.2.0\tg_1)
    (PROGRAM = C:\product\11.2.0\tg_1\bin\dg4msql)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    )
    )

    ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
    ====================================================================
    SQLNET.ora
    # This file is actually generated by netca. But if customers can opt for
    # install 'Software Only', this file does not exist and without the native
    authentication #, they will not be able to connect to the database on NT.

    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    NAMES. DIRECTORY_PATH = (TNSNAMES)

    ====================================================================
    initdg4msql.ora
    HS_FDS_CONNECT_INFO = sqlserverip, port / / PMDB
    HS_FDS_TRACE_LEVEL = OFF
    HS_FDS_RECOVERY_ACCOUNT = RECOVERY
    HS_FDS_RECOVERY_PWD = RECOVERY

    ====================================================================
    lsnrctl start outupt
    The State of the application "dg4msql" UNKNOWN, has 1 handler for this service...
    The command has been executed

    ====================================================================
    tnsping output

    Settings file that is used:
    C: \ Product------11.2.0------tg_1------network-admin------sqlnet.ora

    has been used TNSNAMES adapter to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = dg4msql)) (HS = OK))
    OK (20 ms)

    ====================================================================

    creation of link db output

    SQL * more: Production release 11.2.0.2.0 on Lun Ott 8 12:03:08 2012

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    SQL > CREATE DATABASE LINK dblink PUBLIC CONNECT WITH As IDENTIFIED BY Manager1 USI
    NG 'dg4msql ';
    SP2-0640: not connected.

    most of the foreign bases are case-sensitive and default Oracle moves all uppercase. To keep the name of an object you should always be surrounded by double quotes and make sure tzhat you write the name exactly as it is defined in the foreign database, for example:
    Select 'id' from 'TEST"@ln;

  • ORA-12701: CREATE DATABASE character set is not known after upgrade 11.2.0.3

    Hello Experts,

    Please note that I have just finished my Oracle database upgrade 11.1.0.7 to 11.2.0.3

    Once I tried to bounce the database, I get the following errors?


    [oracle@dba1 09181638] $ sqlplus "virtue sysdba".

    SQL * more: Production of the 11.2.0.3.0 version kills him Sep 18 16:44:26 2012

    Copyright (c) 1982, 2011, Oracle. All rights reserved.

    Connect to an instance is idle.

    SQL > startup
    ORACLE instance started.

    Total System Global Area 1071333376 bytes
    Bytes of size 1349732 fixed
    465569692 variable size bytes
    591396864 of database buffers bytes
    Redo buffers 13017088 bytes
    Mounted database.
    ORA-01092: ORACLE instance is complete. Disconnection forced
    ORA-12701: CREATE DATABASE character set is not known.
    Process ID: 8740
    Session ID: 201 serial number: 5

    Concerning
    Mohammed. Abdul Awal

    ORA_NLS environment variables (ORA_NLS32, ORA_NLS33, ORA_NLS10) explained. [77442.1 ID]

    when using a Oracle 10g or 11g version set the ORA_NLS10 environment variable to:
    
    ORA_NLS10 = $ORACLE_HOME/nls/data
    

    change

    ORA_NLS10=/u01/d01/db/tech_st/11.2.0/nls/data/9idata
    

    TO

    ORA_NLS10=/u01/d01/db/tech_st/11.2.0/nls/data
    

    as 9idata no longer exists it

    or simply disabled ORA_NLS10, as it is not necessary to define explicitly in Oracle 9i

  • Installation error-could not create database tables

    During the installation of the MRS., I get the following error:

    Failed to create database tables. Details: DB does not contain schema SRM: VdbError: there is no such thing as the name of the column in the dr_product_info table

    The SRM documentation indicates the name of the schema must be the same as the DB username that I checked. Does anyone have a solution for this error?

    This is the error you get when the user who connects to the DB is not the

    the owner of the DB. For this reason, the

    the user does not have the privileges to view certain columns in the table.

    If you change the owner of the DB to the user you are using to connect to the DB, then you should be able to complete the installation.

    HTH

    Cormac

  • Error creating database link!

    Dear all,

    I'm in a strange problem to connect to the database between the RAC and single Instance database. The two databases are 11 GR 2 and on Linux platform.

    On a database that is CARS, my settings are as follows:

    view the global_names parameter.
    Value = TRUE

    Select Rename global_name;
    RACDB. DOMAIN.COM

    Although I ran the race:
    ALTER DATABASE RENAME GLOBAL_NAME to RACDB and bounce the database after this command, but still it shows RACDB. DOMAIN.COM

    When I see the db_domain parameter
    Value = (NULL)

    tnsnames.ora is

    GGBKP =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.20.182)(PORT = 1521))
    (CONNECT_DATA = (SERVICE_NAME = GGBKP))
    )


    On the other server, my settings are as follows:

    view the global_names parameter.
    Value = TRUE

    Select Rename global_name;
    GGBKP

    When I see the db_domain parameter
    Value = (NULL)

    tnsnames.ora is
    RACDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.20.29)(PORT = 1521))
    (CONNECT_DATA = (SERVICE_NAME = RACDB))
    )


    OK, now when I create the link DB from one server to another by using the command:

    Server a

    create database GGBKP link to connect to streamadmin identified by streamadmin using 'GGBKP ';

    and run this query

    Select sysdate dual@GGBKP it gives an error:
    ORA-02085: database link GGBKP. DOMAIN.COM will connect to GGBKP


    the second server

    SQL > create database RACDB link to connect to streamadmin identified by streamadmin
    2 using "RACDB;

    Database link created.

    SQL > select sysdate dual@RACDB;
    Select sysdate from dual@RACDB
    *
    ERROR on line 1:
    ORA-02085: database RACDB link connects to the RACDB. DOMAIN.COM

    Where is the problem in the settings and how to get rid of this problem. I have to keep the overall name of TRUE because replication streams.

    Kind regards
    Imran

    Probably that does not help.
    The problem is on the server 1, Server 2 is OK and works as expected.
    For some strange reason, server 1 still picks up "domain.com".

    At this point, I would probably question sys.props$ (where it is stored) or consult the global_names view definition.
    I would not immediately update sys.props$ with the correct value.

    I would also like to run lsnrctl services: if properly configured global_name and service_name in lsnrctl match.

    ------
    Sybrand Bakker
    Senior Oracle DBA

  • create database test mode sleep without some data

    Hello. I want to create database test of my standby database using rman.
    But I have a few a few tables and where information is too much, I don't want to backup all the data in the tables of this. because I don't have enough space on my test server.
    At u an idea for the solution of this problem.
    Thank you

    Adigozalov Qurban wrote:
    Hello. I want to create database test of my standby database using rman.
    But I have a few a few tables and where information is too much, I don't want to backup all the data in the tables of this. because I don't have enough space on my test server.
    At u an idea for the solution of this problem.
    Thank you

    Expensive first

    Because RMAN does not have a logical backup of the database, you have no option to exclude any table or any object backup

    Kamran Agayev a.
    Oracle ACE
    - - - - - - - - - - - - - - - - - - - - -
    My video tutorials of Oracle - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Create database link between two databases?

    Hi all

    Can someone tell me how to do?

    I have two databases in oracle 9i: 'mydb' & 'mydb1 '.

    mydb contains a table 'tab1' with a single domain (of the int data type) and mydb1 contains a table "tab2" with two fields (int, char).

    I tried to do this:

    System is one of the usernames and another username is olapsys
    Manager is the password of the system, and olapsys got the password = myolapsys

    I tried to create a link, but it gave me an error:

    CREATE DATABASE LINK mylink access the system identified by the Manager using "mydb.tab12";

    then I tried running this query in olapsys:

    Select * from tab12@mylink;

    Error:
    ORA-12154: TNS: could not resolve service name

    Help, please.

    Thank you and best regards,

    Lucky

    CREATE DATABASE LINK mylink to connect to the system identified by the Manager using "local service alias ';

    where local service alias is the name of the local service that you configured in the tnsnames.ora to connect to mydb1.

Maybe you are looking for

  • imessages not appearing is not on iphone

    I received an imessage on my Apple Watch, but it does not appear on my iphone.  I tried to turn off the imessages on devices and turn on their return.  any suggestions?

  • push Apple stops working

    25/03/2016 I installed the new itunes on my windows desktop 7.  After restarting my pc, I got the following message: push Apple a work stoppage. Can anyone Tell me how to fix it? Thanks in advance.

  • Guard remote office Session disconnect

    Hi, I've set up a Windows Server 2012 R2 as a Hyper-V host computer for my virtual machines. Access to remote desktop session host, but the session keeps disconnecting after a few minutes. My server has the following roles at present: Any suggestions

  • "Cluster contains not all hosts" in the Web Client

    Hi VMware community,.Anyone know why when deploying a VM from a template in the vSphere 5.5 Web Client, we see an error 'Cluster does contain all the hosts' (see screenshot)?Thank youMike

  • Install error 1152

    I have lr 5.2 and when I try to install it I get error 1152 error extraction in a temporary location. I have a laptop computer sony 4G mem 235 g of free disk space and I have service pack 1, as required.   Any help is greatly appreciated.