How to start a particular database in unix/linux

Hi,
Could any one tell me how to start a particular database in Unix/Linux assuming that my server consists of 10 databases.
Can we use LSNRCTL tool for this??
Regards,
Nagarjun.

> Could any one tell me how to start a particular database in Unix/Linux
assuming that my server consists of 10 databases.
There is something very wrong in basic understanding of Oracle RDBMS architecture, when running 10 Oracle instances on a single server.
10x temp space. 10x redo space. 10x SGA. 10x system processes footprint. This is NOT how one scales Oracle and NOT how one uses Oracle optimally.

Similar Messages

  • How to start Oracle Application Server 10g on Linux

    Hi,
    I have installed the Oracle Appliacion server and Infrastructure server on Linux. Both I have installed under with Diff. folder
    Can some one please tell me how to start / stop Appliacion server and Infrastructure server on Linux
    We are going to use the these with Oracle EBS 11.5.10.2 .
    Oracle EBS 11.5.10.2 installed in the same Linux server under diff. folder
    Can some one please guide me.
    Thanks,

    You can do as rizla said or go another route.
    We setup profiles to use for all of the oracle homes. Then in the scripts we call the profiles. Easier to migrate and manage in my opinion if you have multiple oracle homes. You can then use profiles when ssh'd into the boxes, too. Both ways will work.
    Example:
    Script which you can chkconfig.
    #!/bin/sh
    # oracle_collabInfra
    # This shell script takes care of starting and stopping Oracle Collab Infra instance.
    #chkconfig: 345 96 14
    # Source function library.
    . /etc/rc.d/init.d/functions
    RETVAL=0
    start () {
    echo $"Starting Collab Suite on the Infra instance..."
    echo $"Starting Listener..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; lsnrctl start"
    sleep 10
    echo $"Starting Metadata Repository..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; sqlplus '/ as sysdba' <<!
    startup;
    exit;
    sleep 10
    echo $"Starting Enterprise Manager Application Server Control..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; emctl start iasconsole"
    sleep 5
    echo $"Starting Infra OID and OC4J_Security processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=OID"
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=OC4J_Security"
    echo $"Starting Infra HTTP_Server processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=HTTP_Server"
    return $RETVAL
    stop () {
    echo $"Stopping Collab Suite on the Infra instance..."
    echo $"Stopping all Infra OPMN managed processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl stopall"
    sleep 5
    echo $"Stopping Enterprise Manager Application Server Control..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; emctl stop iasconsole"
    sleep 10
    echo $"Stopping Metadata Repository..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; sqlplus '/ as sysdba' <<!
    shutdown immediate;
    exit;
    sleep 10
    echo $"Stopping Listener..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; lsnrctl stop"
    return $RETVAL
    restart () {
    stop
    start
    RETVAL=$?
    return $RETVAL
    # See how we were called.
    case "$1" in
    start)
    start
    stop)
    stop
    restart)
    restart
    echo $"Usage: $0 {start|stop|restart}"
    RETVAL=1
    esac
    exit $RETVAL
    profile:
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=$ORACLE_BASE/collabInfra
    export ORACLE_SID=orcl
    export TMP=/tmp
    export TMPDIR=/tmp
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/kerberos/bin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/backup_restore
    unset USERNAME

  • How to trace a particular database user  ?

    Everyone knows that there is an Oracle username "SCOTT" in all the database installation.
    How to enable tracing for the SCOTT user, so I can can get all the tracing info of the user SQL's
    Note: I know I can get the sid,serial# info and trace a particular session id, but here i wanted to trace the entire user SCOTT, no matter how many Sessions he opens.
    Help me with this !!!!

    Phil,
    The one what you listed tracing by service name is interesting, correct me if I understood it wrong way.
    Lets say:
    Database Host name: ABC_HOST
    Database Instance & DB: ABC
    Port 1521
    Now I have 3 computers connecting to this database using the following TNSnames.ora
    ====================================
    ABC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = abc_host)
    (Port = 1521)
    (CONNECT_DATA = (SID = ABC)
    ======================================
    Now based on your suggestion you are saying that one computer from which I wanted to trace
    the database sessions, I can create a new entry in the tnsnames.ora as follows:
    ====================================
    ABCTRACE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = abc_host)
    (Port = 1521)
    (CONNECT_DATA = (SID = ABC)
    ======================================
    Now using the DBMS monitor package i can do this to start tracing DBMS_MONITOR.serv_mod_act_trace_enable('ABCTRACE') )
    Correct me if I am wrong

  • How to connect to oracle9i database from Unix

    Hi All,
    How can i connect to remote oracle9i database(windows based) from Unix. I have following server information Server IP, Username , Userpassword , DataBase name.Do i need any other information to connect to server?
    How can i connect database from Putty?
    Do i need to install SQL on the Unix to connect to oracle server?
    and which C/C++ API i have to use to access tables from the remote oracle server?
    please help me i am new to oracle .
    Thanks in advance.

    Oracle generally uses a special set of software, commonly called the SQLNet or Oracle Networking, as a layer to provide a connection between the client and the database server.
    In general terms,
    - the client software (perhaps sqlplus, an application, ODBC) calls Oracle Networking on the client computer and says "please connect to database known as 'x'";
    - Oracle Networking translates the request, often by looking up 'x' in the TNSNAMES.ORA file at the client side, to get the host name, the port the Oracle listener is waiting on, and the name of the database service to access;
    - Oracle Networking contacts the computer on the required port. If the listener is there, the Oracle Networking client asks for a connection to the database service;
    - The Listener (if it recognizes it) asks the database service for a 'server process';
    - The database starts up a server process which grabs a network port and tells the listener which port was obtained;
    - The listener tells Oracle Networking on the client which port to use;
    - The client disconnects from the Listener, and reconnects at that port;
    - The server process starts authentication and session initialization, after which we are good to go.
    In answer to your questions:
    1) How can i connect database from Putty?
    That implies you want to telnet to the Windows box and run the client stuff locally on the Windows box. So that means you need to look at telnet or ssh documentation - this has nothing to do with Oracle.
    2) Do i need to install SQL on the Unix to connect to oracle server?
    Not really. It does mean you might want to install an Oracle CLIENT (see the download section of http://otn.oracle.com) which will initiate the sequence as above.
    A different sort of client is SQL Developer, a Java-based GUI with it's own built-in Oracle Networking, that displays database stuff. That is also offered by Oracle at the same download page.
    3) and which C/C++ API i have to use to access tables from the remote oracle server?
    Oracle provides a C/C++ API as a pre-processor, called Pro*C. I suspect this si way beyond what you want right now.
    4) please help me i am new to oracle .
    Please, please, please, please, please ..... please .... purchase and read http://www.oreilly.com/catalog/oressentials3/

  • How to start a particular version of Photoshop when multiple versions are installed

    I have written a small software that automates a few functions in PS CS2.
    Till now it was working just fine with PS CS2. Now due to some unknow reasons the client has installed CS 4 and CS 5.
    Now my clinet want that the software should be able to detect all installed version of PS and allow him as user to choose as to with which version of PS my software should automate.
    Is this possible?
    If yes and how to achieve it?
    Oh! I have also abserved an unusual behaviour. I don't know whether it is because of my software or because of PS.
    By default when my software executs this automation script (generated using Script listner)
    Rem =======================================================
      Dim objApp
      Set objApp = CreateObject("Photoshop.Application")
      Rem Use dialog mode 3 for show no dialogs
      Dim dialogMode
      dialogMode = 3
      Dim id11
      id11 = objApp.CharIDToTypeID("setd")
          Dim desc3
          Set desc3 = CreateObject("Photoshop.ActionDescriptor")
          Dim id12
          id12 = objApp.CharIDToTypeID("null")
              Dim ref2
              Set ref2 = CreateObject("Photoshop.ActionReference")
              Dim id13
              id13 = objApp.CharIDToTypeID("Prpr")
              Dim id14
              id14 = objApp.CharIDToTypeID("GnrP")
              Call ref2.PutProperty(id13, id14)
              Dim id15
              id15 = objApp.CharIDToTypeID("capp")
              Dim id16
              id16 = objApp.CharIDToTypeID("Ordn")
              Dim id17
              id17 = objApp.CharIDToTypeID("Trgt")
              Call ref2.PutEnumerated(id15, id16, id17)
          Call desc3.PutReference(id12, ref2)
          Dim id18
          id18 = objApp.CharIDToTypeID("T   ")
              Dim desc4
              Set desc4 = CreateObject("Photoshop.ActionDescriptor")
              Dim id19
              id19 = objApp.CharIDToTypeID("HsSt")
              Call desc4.PutInteger(id19, 1)
          Dim id20
          id20 = objApp.CharIDToTypeID("GnrP")
          Call desc3.PutObject(id18, id20, desc4)
      Call objApp.ExecuteAction(id11, desc3, dialogMode)
      Call SetUndoTo1CS3
    It will automatically start that version of PS which was last running before the system was shut down.
    Let me try an explain this in a different way:
    To get my software to talk to a particular version of PS I have to perform the following steps:
    Start that version of PS in I am interested
    Open a file and save is under a different name
    Close PS
    Restart my PC
    After performing all these steps when my software automates PS that version of PS will start which was last run.
    Any idea as to what is going on?
    Please help me solve this problem.

    The answer is somewhat easy until you start talking about launching 32 or 64! When you call CreateObject you specify which version you want. Most of the time you want the current version so you say "Photoshop.Application". But you can say "Photoshop.Application.11" for CS4 or .12 for CS5. You could look in the registry to see which keys are present and pose a question to your user.
    --------------- 32 and 64 bit fun ---------------------
    If you are on a 64 bit OS you have two versions of Photoshop installed beginning with CS4. If your application is a 64 bit application and you are the correct user you can see into both the 64 bit registry and the 32 bit registry. If you are a 32 bit application you only see the 32 bit side of the registry.
    What I do is run my VBScripts via the cscript application and I launch cscript in either 32 or 64 bit mode.
    Here is my test:
    Launch 32 bit version of photoshop via cscript in 32 bit mode and specify the version:
    E:\h:\windows\SysWOW64\cscript \files\VBScripts\TestLaunch10.vbs 11
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    Trying to launch Photoshop.Application.11
    DOM library
    11.0.2
    H:\Program Files (x86)\Adobe\Adobe Photoshop CS4\
    Done
    Launch 64 bit version:
    E:\cscript \files\VBScripts\TestLaunch10.vbs 11
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    Trying to launch Photoshop.Application.11
    DOM library
    11.0.2
    H:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\
    Done 
    You can see from the path that the correct version is launched.
    Here is a snippet of the code...
    appName = "Photoshop.Application." & vStringSet app = CreateObject(appName)

  • How to list the rac databases on unix terminal

    Hi guys, I am trying to find out how to list all the rac databases on the unix terminal.
    the following command gives the list of all the databases running on a server
    *'ps -ef |grep smon | awk '{print $8}' | awk -F"_" '{print $3}''*
    of those databases i am trying to find the all the databases which are rac enabled.
    I tried srvctl status database -d 'database name'
    but with that i could find info on only one database at a time. So I am looking for a single command that lists out all the rac databases at a single go.
    can someone please help me figure out that command
    Thank You

    Try:
    srvctl config database

  • How Auto starting Physical Standby Database ( when Server Restart)

    Dear All(s)
    I have configure oracle (10.2.0) dataguard on production database, some time server restart due to power disconnectivity, i want to restard dataguard when server restart. i am using Server 2003 32bit. Guide me how i can run following commands when server restart.
    SQL> connect/as sysdba
    SQL> Startup mount;
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    Thanks in Advance

    i want to run these command each time when server restart.Yes, I did understand that... but what's the problem ? can't you schedule a task when the server starts ?

  • How to start creating multidimantional database

    hi;
    I am new user for oracle 10g. and I want to creat a multidimantional database using Oracle Enterprise Manager GUI to create my dimension??
    I do not know how??
    do I have first to creat the tables in sql* and then I continu in Oracle Enterprise Manager ??
    please please help

    Look for "Creating Metadata Using Enterprise Manager Database Control" in the OLAP Application Developers Guide.

  • Accessing remote sybase database on unix/linux machine thru telnet

    How can i access a sybase database server thru telnet....using java code. i am writing a client for windows...Also the Sybase server is on a unix or linux machine.............please elp me out ...its urgent..

    Why do you want to access it through telenet.
    If you want to access/manipulate data in the database use JDBC with a driver for Sybase (Which you will be able to find if you do some googling)

  • How to Rename Oracle 11g Database in the Linux

    I want to Rename Database.How I must do this problem.Please help me
    Edited by: 850512 on Apr 7, 2011 1:18 AM
    Edited by: 850512 on Apr 7, 2011 1:22 AM

    850512 wrote:
    Step by step pleaseBefore you proceed any further, you need to define the real problem you are trying to solve. "renaming" a database may or may not be the appropriate solution - not to mention that "rename the database" could mean several things and we don't know your definition of that phrase.

  • Thoughts: how to design utility similar to the unix/linux

    I want to take the "ls -la" output, in order to create binary tree nodes, which will contain the name of the file, its location, its size, and the permission.
    I did "ls -la > tmp" and i am trying to use the output of the tmp file. Here's a snapshot:
    -rw-r--r--   1 root   root   160920 Jun 11 21:10 BOOKOSI.TTF
    -rw-r--r--   1 root   root   160940 Jun 11 21:10 BOOKOS.TTF
    -rw-r--r--   1 root   root     7216 Jun 11 21:10 cga40737.fon
    -rw-r--r--   1 root   root     6352 Jun 11 21:10 cga40850.fon
    -rw-r--r--   1 root   root     6672 Jun 11 21:10 cga40852.fonAs you can see there are 9 collumns, which are THEORETICALLY separated with spaces(or tabs) and there is also a EOL at the end. Unfortunately both assumptions are wrong.
    Hers's a part of the program, i have written:
        private static void analyzeInputCreateNodes() throws IOException
            File f= new File("/home/kostas/tmp3");
            FileInputStream fin= new FileInputStream(f);
            DataInputStream in= new DataInputStream(fin);               
            StreamTokenizer tokenizer=new StreamTokenizer(in); 
            tokenizer.resetSyntax();
            //tokenizer.wordChars(0,100);
            String s="";
            String s2="";
            String[] entryTable= new String[10];
           // String[] entryTable={"0","0","0","0","0","0","0","0","0","0"};
            StringBuffer sb= new StringBuffer();
            int lineCounter=0;
            int entryCounter=0;
            while(tokenizer.nextToken()!= StreamTokenizer.TT_EOF)
                    s=(new Character((char)tokenizer.ttype)).toString();
                    if (tokenizer.ttype==StreamTokenizer.TT_EOL)
                        for (int i=0; i<=9; i++)
                            System.out.print(entryTable[i]+" ");
                            //System.out.println();
                        entryCounter=-1;                                                          
                        entryTable[++entryCounter]=new Integer(lineCounter++).toString();
                    if (!(s.equals(" ")))
                        s2=sb.append(s).toString();
                    else
                        if (s.equals(" "))
                        entryTable[++entryCounter]=s2;
                    lineCounter++;
             }And here's what i found out when i changed the code and added the following part:
                    if (tokenizer.ttype==StreamTokenizer.TT_EOL)
                      System.out.println("EOL");
                    s=(new Character((char)tokenizer.ttype)).toString();
                   if (s.equals(" ")) System.out.println("space");This output proved my assumptions wrong:
    space
    space
    space
    space
    space
    space
    space
    space
    EOL
    space
    space
    space
    space
    space
    space
    space
    space
    EOL
    space
    space
    space
    space
    space
    space
    space
    space
    EOL
    space
    ......Do you have any ideas about how i can improve this?
    Is there a way to create string patterns? (I don't know if it's called that way).
    Post some keywords, links about it.
    Thanks

    Not clear what the problem is, that is, what you feel the problem is. Is it that you're getting one whitespace character between tokens on the input lines? Are you sure that this isn't an artifact of StreamTokenizer? (maybe it's collapsing whitespace?)
    The problem with parsing the output of "ls -la" is that its output can be more complex than you may be anticipating. For example, I believe the date format will change if the file is sufficiently old. This is going to be system-dependent, of course, and thus not so portable. This is the kind of problem that explodes in complexity when you least expect it.
    Is there any particular reason that you're not just using java.io.File?

  • How to use different jdk on windows/unix/linux OS?

    Hi,
    I always use differen jdk/jre version. but always I delete first then I install jdk/jre which version I want. My question is how I change system jdk/jre setting don't uninstall jdk?

    If you have multiple monitors and run Linux, you may want to display different images as your wallpaper on each monitor. There's a utility for that – Nitrogen. The blackMORE Ops blog has a nice how-to on getting Nitrogen and configuring it, with step-by-step instructions and plenty of screenshots.
    This topic first appeared in the Spiceworks Community

  • How can I setup nodemanager as a unix/linux deamon service ??????

    Hi There,
    I'm trying to set up the nodemanager service in *nix (RHEL 5.3) env. My goal is, when a server reboots and it comes up, I want to get the nodemanager startsup by itself and start the admin server and managed server.
    Any answers/suggestions are much appreciated.
    Thanks
    GM

    This one is from Solaris. The only thing you would have to change is the ps command. Just find the right ps command that works for you.
    #!/bin/sh
    # Name: S98nodemanager11g
    # Description: File to start Weblogic Nodemanager at system boot time
    NODEBIN=/opt/bea/nodemanager11g
    NODELOGDIR=${NODEBIN}/logs
    NODELOGFILE=${NODELOGDIR}/startup.log
    case "$1" in
    'start')
    nm=`/usr/ucb/ps -auxwwww |egrep '^root.*jdk6.*weblogic.NodeManager' |grep -v grep | awk '{print $2}'`
    if [ -n "$nm" ] ;then
    echo "Nodemanager for Weblogic 11g is already running. pid=$nm"
    else
    echo "Starting Nodemanager for Weblogic11g"
    mv $NODELOGFILE $NODELOGFILE.old
    cd $NODEBIN;./startNodeManager.sh > $NODELOGFILE 2>&1
    fi
    'stop')
    nm=`/usr/ucb/ps -auxwwww |egrep '^root.*jdk6.*weblogic.NodeManager' |grep -v grep | awk '{print $2}'`
    if [ -n "$nm" ] ;then
    echo "Forcing shutdown of Nodemanager for Weblogic11g."
    kill $nm
    else
    echo "Nodemanager for Weblogic 11g is not running."
    fi
    echo "Usage: $0 { start | stop }"
    exit 1
    esac
    exit 0

  • How can I support big database in redHat linux?

    I know in berkeley db, a database is like a table. But if I want to put must data into the table, the database file would bypass 2 gigabytes, which is not supported by the linux os. Is there a method to this?

    Yes, OS does not support bigger file then 2G.
    Why not berkeley DB use many different files to save
    a single database automatically? If so, when a first
    file's size if bypass the support of the OS, berkeley
    DB will aotomatically create another big file.
    ShuanghuaHi Shuanghua,
    This feature request has not come up since most file systems can support files that exceed 2 GB. Since Linux has had this support for years, I suggest you look into turning that option on or going with a Kernel version/File system that supports files that exceed 2GB.
    If you can come up with a good reason for this feature that would be useful to others than we will consider it for a future release. With the information you provided thus far, it seems like you should simply change your file system/Kernel so you can get around the restriction.
    Ron Cohen

  • How to connect oracle 9i database in PHP (Linux)

    I found that I cannot connect oracle 9i thru PHP in Linux, where can I get the necessary information and samples to setup this connection?

    Hi,
    You can find information on http://www.php.net .
    Anyway, you have to configure php.ini with oci8 library.
    Paolo

Maybe you are looking for

  • Can I copy part of a PDF from iBooks?

    I emailed a PDF to my iPad. Then opened it in iBooks. Now I want to copy part or all of the document into a Pages document. I can't find a way to get a Select or Copy menu to come up. I've tried tapping, double tapping, and holding my finger on the p

  • HT4113 My screen in broken and I need to sync/backup my phone. Please help!!!

    My iphone 5 screen went out on me (it is blacked out) and I need to sync/backup my phone before I get it serviced for a new screen.  Unfortuantely, I am unable to sync my device to my itunes on my macbook, because it is asking me to enter my passcode

  • How could I login to OEM in windows xp?

    I install Oracle 9i in my personal PC (XP pro), but i can not login to OEM, i can only login to standalone and can only expand a database with SYSDBA account, is that normal or something wrong in my installation? i even don't know how to import the .

  • JSP - Applet Object communication.

    Hi, I would like to know, what is the best way to pass Java Objects to Applet. My module requires a complex JTree to be dynamically constructed by the Applet, thus making the Applet very process intensive. To optimize the performance I want to write

  • Adobe reader does not respond

    Just updated to Adobe reader 11 and it hangs when opened.  Error says not responding.  Running Windows 7.  Have uninstalled and re-installed multiple times.