Noob. Command Line says "insufficient privileges". wont STARTUP

Hi,
I am new to SQL and have installed Oracle Database 10g Express Edition. OracleXE.exe.
When I try to use the Command Line via the start menu, I enter STARTUP and it says "insufficient privileges"
Logging in via the GUI works fine, I have created tables and added data to them, but I wish to use the command line.
Many thanks for any advice.
Thanks.
Message was edited by:
Swerve

SQL> conn <username>/<password>to connect as normal user, or
SQL> conn / as sysdbafor admin operations, like startup and shutdown.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12015.htm#i2697450

Similar Messages

  • Help! ORA-01031: insufficient privileges during "startup migrate" 8i to 9i

    Hello there,
    I am following the Oracle 9i upgrade checklist Doc ID: 159657.1 to upgrade from 8.1.7.3 to 9.2.0.4.
    In step 31, after setting the environment to new ORACLE_HOME, I am trying to start the 9.2.0.4 instance in migrate mode. This is the sequence of errors that I get.
    Any help is greatly appreciated.
    Thanks,
    Rao
    oracle>sqlplus /nolog
    SQL*Plus: Release 9.2.0.4.0 - Production on Mon Aug 25 09:55:29 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> connect / as sysdba;
    Connected to an idle instance.
    SQL> shutdown immediate
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-01092: ORACLE instance terminated. Disconnection forced
    SQL> startup migrate
    ORA-01031: insufficient privileges
    SQL> quit
    Disconnected
    oracle>

    bash-2.03$ env | sort
    HOME=/home/oraclei
    HOSTNAME=orafinprdrodb01
    HOSTTYPE=sparc
    HZ=
    LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/ysm_finapps_legacy/ysm_data/d00/app/oraclei/prodidb/8.1.7/lib:/usr/dt/lib:/usr/openwin/lib
    LOGNAME=oraclei
    MACHTYPE=sparc-sun-solaris
    MAIL=/var/mail/oraclei
    NLS_DATE_FORMAT=DD-MON-RR
    NLS_LANG=American_America.UTF8
    NLS_NUMERIC_CHARACTERS=.,
    NLS_SORT=binary
    OLDPWD=/ysm_finapps_legacy/ysm_data/d00/app/oraclei/prodidb/8.1.7/rdbms
    ORACLE_HOME=/ysm_finapps_legacy/ysm_data/d00/app/oraclei/prodidb/8.1.7
    ORACLE_SID=PRODI
    OSTYPE=solaris
    PATH=/ysm_finapps_legacy/ysm_data/d00/app/oraclei/prodidb/8.1.7/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:
    PWD=/ysm_finapps_legacy/ysm_data/d00/app/oraclei/prodidb/8.1.7/rdbms/lib
    SHELL=/bin/sh
    SHLVL=1
    TERM=xterm
    TNS_ADMIN=/ysm_finapps_legacy/ysm_data/d00/app/oraclei/prodidb/8.1.7/network/admin
    TZ=US/Pacific
    _=/usr/bin/env

  • Discoverer 11g EUL command line error granting privileges

    I'm testing Discoverer 11g (Desktop and Administrator 11.1.3) in order to upgrade from 10g. On 10g we have some scripts that automate many things using EUL command line. The first difference I've found is than in 10g we used directly eulbuilder.jar, now in 11g this jar has moved to $ORACLE_HOME\discoverer\lib and you have to use eulapi.bat located on oracle home's bin directory.
    The second difference is that grant_privilege and revoke_privilege commands had stopped working, they do nothing. I've compared via database dumps what they do in 10g and basically they insert/delete some registers on EUL5_ACCESS_PRIVS and EUL5_EUL_USERS and grants/revoke access to EUL tables.
    10g commands working fine
    -- Revoke all access and privileges
    java -jar eulbuilder.jar -CONNECT E/E@ORCL -eul E -REVOKE_PRIVILEGE -PRIVILEGE all_user_privs -BUSINESS_AREA_ACCESS % -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    -- Grant user privileges
    java -jar eulbuilder.jar -CONNECT E/E@ZEUS -eul E -GRANT_PRIVILEGE -PRIVILEGE all_user_privs -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    -- Grant business area access privileges
    java -jar eulbuilder.jar -CONNECT E/E@ZEUS -eul E -GRANT_PRIVILEGE -BUSINESS_AREA_ACCESS % -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    11g commands doing nothing
    -- Revoke all access and privileges
    eulapi.bat -CONNECT E/E@ORCL -eul E -REVOKE_PRIVILEGE -PRIVILEGE all_user_privs -BUSINESS_AREA_ACCESS % -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    -- Grant user privileges
    eulapi.bat -CONNECT E/E@ZEUS -eul E -GRANT_PRIVILEGE -PRIVILEGE all_user_privs -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    -- Grant business area access privileges
    eulapi.bat -CONNECT E/E@ZEUS -eul E -GRANT_PRIVILEGE -BUSINESS_AREA_ACCESS % -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    Has anybody tried these commands? If so, they worked? I'm afraid this could be a bug, does anybody know how can I report it to Oracle?
    Thanks in advance

    Hi
    I haven't been able to try them and I am surprised to hear that they do not work.
    Assuming that the commands are unaltererd and I would be surprised if the syntax is changed, to report this as a bug you need to raise a service request using MyOracleSupport (formerly MetaLink).
    You basically raise it in the same way you are doing it it in here and ask Oracle if the commands you are provdiing are still valid and then ask them to report it to development if they find out that it is a bug and they can reproduce it. The trick here is getting support to reproduce your issue.
    If you hear anything further please let us know.
    Best wishes
    Michael

  • ORA-01031: insufficient privileges for STARTUP/SHUTDOWN TRIGGERS

    Hi,
    I given these 2 privs to scott still i am getting ORA-01031
    GRANT administer DATABASE TRIGGER TO scott;
    grant create any trigger to scott;
    CREATE OR REPLACE TRIGGER shut_db before shutdown on database
    ERROR at line 1:
    ORA-01031: insufficient privileges
    anything i missed ?
    Thanks
    Prakash

    Hi,
    Can you try logout and login and try again?
    i have 10.2.0.1 and it worked for me
    As user SCOTT
    TEST10.UTAC.COM.SG$SCOTT> CREATE OR REPLACE TRIGGER shut_db before shutdown on database
      2  begin
      3  null;
      4  end;
      5  /
    CREATE OR REPLACE TRIGGER shut_db before shutdown on database
    ERROR at line 1:
    ORA-01031: insufficient privilegesOn another window with user SYS
    TEST10.UTAC.COM.SG$SYS> GRANT administer DATABASE TRIGGER TO scott;
    Grant succeeded.On the first window of SCOTT (did not logout and login)
    TEST10.UTAC.COM.SG$SCOTT> CREATE OR REPLACE TRIGGER shut_db before shutdown on database
      2  begin
      3  null;
      4  end;
      5  /
    Trigger created.Salman

  • Error logging in as sysdba - "insufficient privileges"

    Hi,
    I have AS10.1.2.0.2 installed on my linux box.
    i have infrastructure as well as midtier both installed in the same machine on different oracle homes.
    after installing everything worked fine and brought down the system just to test it.
    and upon restarting the system, i started the listener first, and then i tried to enter sqlplus using
    "connect sys/pwd@asdb as sysdba"
    but when i used this login i got message saying "insufficient privileges"
    i wanted to login as sysdba and give a "startup" command.
    Can someone explain why this error.
    Thanks,
    Philip.

    Hi Philip,
    Just set your environement variable well.
    example:
    export ORACLE_HOME= your oracle home where you have installed your infra.
    export ORACLE_SID= (the name of your Metadata)
    cd $ORACLE_HOME/bin
    sqlplus /nolog
    conn sys/ as sysdba
    You 'll be connected to you DB.
    then
    SQL>startup
    Cheers,
    Hamdy

  • Insufficient privileges at merge step

    Hi,
    I am trying to run one of the interfaces which loads data into a temp table and it's failing at merge step saying insufficient privileges. What privileges do I need to give and to which user? Or is there any other option that I need to set in order to get rid of this error.
    Thanks,
    San

    what acdti is trying to say is that the work schema user does not have necessary grants ie insert/update on the target schema.
    For Example - ODI_TEMP is your work schema and XYZ is your Target Schema and AAA is your Target Table.
    ODI_TEMP can easiliy create $ tables as its the owner but while trying to perform insert on XYZ.AAA it is throwing Insufficient privileges because its missing grants
    Resolution :- GRANT SELECT,INSERT,UPDATE ON XYZ.AAA TO ODI_TEMP   Execute this command on the Target Schema (XYZ)

  • Insufficient privileges to create the RDF NETWORK

    Hi,
    I am using user scott to test a rdf database using oracle 11.2.0.2 contained in oracle developer days. I granted resource, create session, create table, and create tablespace to scott. I am able to create a tablespace under scott. I also used the OEM panel to grant many privileges in roles, system privileges and object privileges to scott. However, I am still not able to create the rdf network under scott. The error says insufficient privileges to create the RDF NETWORK. How can I grant a priviledge to scott to create a rdf network? Thanks a lot.
    hong

    Hi Hong,
    Yes. This is the correct order. You must first create the semantic network as a user with DBA privileges. After that, you can create semantic models with a less privileged user.
    You can find more information in the Quick Start Section of the user guide:
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25609/sdo_rdf_concepts.htm#CHDEDFFA
    Hope this helps,
    Matt

  • SINGLE MODE COMMAND LINE

    Im not to sure if I've accidentally changed a setting in the application 'terminal' before it started playing up but when i start it in single mode now the command line says "-sh-3.2#" instead of something else i forgot what it was at the beginning but it ended with "root #"
    Does anybody know how to change it back to that

    What does it show if you hit enter at that point?
    http://www.westwind.com/reference/os-x/commandline/single-user.html

  • ERROR: insufficient privileges while using EXPLAIN PLAN command

    Hi,
    I have a table named TEST and i ran following command on this table.
    SQL> EXPLAIN PLAN FOR
    2 SELECT NAME FROM TEST;
    SELECT NAME FROM TEST
    ERROR at line 2:
    ORA-01031: insufficient privileges
    So which privilege do i need to give for using EXPLAIN PLAN command.
    Thank.

    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#i19260
    SQL> @C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utlxplan.sql
    Table created.
    SQL> select table_name from user_tables where table_name='PLAN_TABLE';
    TABLE_NAME
    PLAN_TABLE
    You might consider checking dba_tables to check the owner in your case and may be you don't privilege on that table.

  • Oracle11r2/Solaris10 Problem startup script "insufficient privileges"

    Hi,
    I have a problem with my startup script. i think that is the permissions but i dont know.
    When i run the script as oracle user, the script runs ok. But when i reboot the system the log showme error with "insufficient privileges".
    This is my script.
    +# more dbora+
    +#!/usr/bin/bash -x+
    +#/bin/sh -x+
    +#+
    +# Change the value of ORACLE_HOME to specify the correct Oracle home+
    +# directory for your installation.+
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    +#+
    +# Change the value of ORACLE to the login name of the+
    +# oracle owner at your site.+
    +#+
    ORACLE=oracle
    +PATH=${PATH}:$ORACLE_HOME/bin+
    HOST=`hostname`
    PLATFORM=`uname`
    ORACLE_SID="orcl"
    export ORACLE_HOME PATH ORACLE_SID
    case $1 in
    +'start')+
    sleep 3
    +# rsh $HOST -l $ORACLE -n "$ORACLE_HOME/bin/dbstart $ORACLE_HOME &"+
    +# su - oracle -c "$ORACLE_HOME/bin/dbstart"+
    +# $ORACLE_HOME/bin/dbstart "+
    +$ORACLE_HOME/bin/dbstart $ORACLE_HOME &+
    +$ORACLE_HOME/bin/lsnrctl start &+
    +$ORACLE_HOME/bin/emctl start dbconsole &+
    +;;+
    +'stop')+
    +$ORACLE_HOME/bin/dbshut $ORACLE_HOME &+
    +$ORACLE_HOME/bin/lsnrctl stop &+
    +$ORACLE_HOME/bin/emctl stop dbconsole &+
    +;;+
    +*)+
    +echo "usage: $0 start"+
    +exit+
    +;;+
    +esac+
    +exit+
    +#+
    +# ll /etc/init.d/dbora+
    +-rwxr-x--- 1 root dba 1185 Apr 20 10:33 /etc/init.d/dbora+
    +#+
    +# ll /etc/rc3.d/+
    +total 42+
    +...+
    +...+
    +lrwxrwxrwx 1 root root 17 Apr 20 10:30 K01dbora -> /etc/init.d/dbora+
    +lrwxrwxrwx 1 root root 17 Apr 19 17:04 S99dbora -> /etc/init.d/dbora+
    +#+
    +# more /var/opt/oracle/oratab+
    +orcl:/u01/app/oracle/product/11.2.0/db_1:Y+
    +other:/u01/app/oracle/product/11.2.0/db_1:Y+
    +#+
    +# more /etc/group+
    +...+
    +...+
    +oinstall::100:oracle+
    +dba::101:oracle+
    +#+
    I try with su - oracle -c "command" in the script but doesnt work (the oracle doesnt startup and startup log dont show nothing).
    I dont know whats the problem. I will thank you for your help.
    Thanks.
    ========
    startup log from the init.d:
    ++ export ORACLE_SID+
    ++ PATH=/u01/app/oracle/product/11.2.0/db_1/bin:/bin:/usr/bin:/etc:/usr/sbin:/usr/bin:/u01/app/oracle/product/11.2.0/db_1/bin+
    ++ export PATH+
    ++ LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:+
    ++ export LD_LIBRARY_PATH+
    ++ PFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora+
    ++ SPFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora+
    ++ SPFILE1=/u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora+
    ++ echo ''+
    ++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"'+
    +/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"+
    ++ date+
    +Tue Apr 20 10:34:25 CDT 2010+
    ++ echo ''+
    ++ checkversionmismatch+
    ++ '[' 11 ']'+
    +++ sqlplus -V+
    +++ grep 'Release '+
    +++ cut '-d ' -f3+
    +++ cut -d. -f1+
    ++ VER10INST=11+
    ++ '[' 11 -lt 11 ']'+
    ++ VERSION=undef+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/sqldba ']'+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/svrmgrl ']'+
    ++ SQLDBA='sqlplus /nolog'+
    ++ STATUS=1+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.dbf ']'+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.ora ']'+
    +++ ps -ef+
    +++ grep -w ora_pmon_orcl+
    +++ grep -v grep+
    ++ pmon=+
    ++ '[' '' '!=' '' ']'+
    ++ '[' 1 -eq -1 ']'+
    ++ '[' 1 -eq 1 ']'+
    ++ '[' -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora ']'+
    ++ case $VERSION in+
    ++ sqlplus /nolog+
    +SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 20 10:34:26 2010+
    +Copyright (c) 1982, 2009, Oracle. All rights reserved.+
    +SQL> + export ORACLE_SID+
    ++ PATH=/u01/app/oracle/product/11.2.0/db_1/bin:/bin:/usr/bin:/etc:/usr/sbin:/usr/bin:/u01/app/oracle/product/11.2.0/db_1/bin+
    ++ export PATH+
    ++ LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:+
    ++ export LD_LIBRARY_PATH+
    ++ PFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora+
    ++ SPFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora+
    ++ SPFILE1=/u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora+
    ++ echo ''+
    ++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"'+
    +/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"+
    ++ date+
    +Tue Apr 20 10:34:27 CDT 2010+
    ++ echo ''+
    ++ checkversionmismatch+
    ++ '[' 11 ']'+
    +++ sqlplus -V+
    +++ grep 'Release '+
    +++ cut '-d ' -f3+
    +++ cut -d. -f1+
    ++ VER10INST=11+
    ++ '[' 11 -lt 11 ']'+
    ++ VERSION=undef+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/sqldba ']'+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/svrmgrl ']'+
    ++ SQLDBA='sqlplus /nolog'+
    ++ STATUS=1+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.dbf ']'+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.ora ']'+
    +++ ps -ef+
    +++ grep -w ora_pmon_orcl+
    +++ grep -v grep+
    ++ pmon=+
    ++ '[' '' '!=' '' ']'+
    ++ '[' 1 -eq -1 ']'+
    ++ '[' 1 -eq 1 ']'+
    ++ '[' -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora ']'+
    ++ case $VERSION in+
    ++ sqlplus /nolog+
    +SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 20 10:34:27 2010+
    +Copyright (c) 1982, 2009, Oracle. All rights reserved.+
    +SQL> ERROR:+
    +ORA-01031: insufficient privileges+
    +SQL> ORA-01031: insufficient privileges+
    +SQL> + '[' 0 -eq 0 ']'+
    ++ echo ''+
    ++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Database instance "orcl" warm started.'+
    +/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Database instance "orcl" warm started.+
    =============
    if i run the script as oracle user this is the log:
    ++ export ORACLE_SID+
    ++ PATH=/u01/app/oracle/product/11.2.0/db_1/bin:/bin:/usr/bin:/etc:/usr/sbin:/usr/bin:/opt/csw/bin:/usr/openwin/bin:/u01/app/oracle/product/11.2.0/db_1/bin+
    ++ export PATH+
    ++ LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:+
    ++ export LD_LIBRARY_PATH+
    ++ PFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora+
    ++ SPFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora+
    ++ SPFILE1=/u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora+
    ++ echo ''+
    ++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"'+
    +/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"+
    ++ date+
    +Tue Apr 20 10:39:17 CDT 2010+
    ++ echo ''+
    ++ checkversionmismatch+
    ++ '[' ']'+
    ++ VERSION=undef+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/sqldba ']'+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/svrmgrl ']'+
    ++ SQLDBA='sqlplus /nolog'+
    ++ STATUS=1+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.dbf ']'+
    ++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.ora ']'+
    +++ ps -ef+
    +++ grep -w ora_pmon_orcl+
    +++ grep -v grep+
    ++ pmon=+
    ++ '[' '' '!=' '' ']'+
    ++ '[' 1 -eq -1 ']'+
    ++ '[' 1 -eq 1 ']'+
    ++ '[' -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora ']'+
    ++ case $VERSION in+
    ++ sqlplus /nolog+
    +SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 20 10:39:17 2010+
    +Copyright (c) 1982, 2009, Oracle. All rights reserved.+
    +SQL> Connected to an idle instance.+
    +SQL> ORACLE instance started.+
    +Total System Global Area 3374866432 bytes+
    +Fixed Size 2152768 bytes+
    +Variable Size 1845495488 bytes+
    +Database Buffers 1493172224 bytes+
    +Redo Buffers 34045952 bytes+
    +Database mounted.+
    +Database opened.+
    +SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production+
    +With the Partitioning, OLAP, Data Mining and Real Application Testing options+
    ++ '[' 0 -eq 0 ']'+
    ++ echo ''+
    ++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Database instance "orcl" warm started.'+
    +/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Database instance "orcl" warm started.+

    Hi,
    thanks for your reply.
    I found the problem.
    In my script, i change this:
    # su - oracle -c "$ORACLE_HOME/bin/dbstart"
    by this and its work (without "-")
    # su oracle -c "$ORACLE_HOME/bin/dbstart"
    Thanks...

  • Insufficient Privileges on DB Startup

    When I start up server manager and log in with the internal username/pw, I receive a message that I have "Connected to an Idle Instance." When I try to start the instance with the STARTUP command, I get a message about "ORA-01031: Insufficient Privileges." Any help appreciated.

    Check your OS privs - check for OSDBA and OSOPER privs.

  • Does anybody know the itunes startup switches / command lines?

    I have 2 itunes librarys and dont like having to hold Shift when I open itunes every time to switch itunes librarys.
    I want to create 2 shortcuts to itunes on my desktop, each containing a switch / command line to open the desired library
    Does anybody know what the switches / command lines are to startup itunes?

    As far as I know, the only arguments iTunes.exe supports is a path to a file to start playing (music or video). You can't tell it via command-line switches to open a certain library.
    I do however have a helper program that will do what you want. You give it the path to your library folder as an argument, so you have to create shortcuts to my exe, with the library folder as the argument.
    For example, if the path to one of your iTunes Library is C:\library (i.e. inside C:\library is the file "iTunes Library.itl", the "iTunes Music" folder, etc.), then the shortcut target would be:<pre>C:\itunesopenlibrary.exe -b C:\library</pre>
    The program works by editing the iTunes Prefs.xml directly, then starting iTunes. The -b switch is to make a backup of the prefs file before editing it. Note, however, that it only makes one backup; the next time you run itunesopenlibrary.exe with "-b", it will overwrite the last backup.
    Download the program here:
    http://mysite.verizon.net/teridon/itunesscripts/index.html#itunesopenlibrary
    The forum TOS requires me to say: "I may receive some form of compensation, financial or otherwise, from my recommendation or link" because I have a paypal donation link on my webpage, but the program is free (donation totally optional)
    HTH,
    Rob

  • Java - Command Line Arguments. Noob.

    Hi I am following a book and I can't seem to understand what it is trying to say
    1) Open your text editor, and write a public class called Book.
    2) Add main() within your Book class.
    3) The title will be args[0] and the author will be args[1]. You need to
    concatenate ?Title: ? with args[0], which is done by using the + operator.
    public class Book {
        public static void main(String[] args) {
            args[0] = "Rising Sun";
            args[1] = "John";
            System.out.println("Title: " + args[0]);
            System.out.println("Author: " + args[1]);
    }I have having trouble working out how to configure the args[0] and args[1]. Please tell me where they should be going. Thanks.

    You don't set args[0] and args[1] in your code. They are passed to your main from the command line by the JVM.
    java -cp . Book "Rising Sun" JohnWhen your main method is invoked, args[0] will be "Rising Sun" and args[1] will be "John".
    If you're running your program via an IDE, like NetBeans (which you shouldn't be doing this early in your career), then there will be someplace to configure what command line args to pass when it invokes your code. Set the title and author there.

  • Command line startup options to Graphical Debugger

    Hi,
    With Workshop 5.0 as well as Forte Developer 6, it was possible to pass a program name at the command line with the -D option. This, in conjunction with an appropriate .dbxrc file, allowed me to invoke Workshop (and Forte Developer 6) from my own script, with the program to be debugged pre-loaded in the debugger window.
    I did not see the "-D" startup option for runide.sh. Is there an alternative way in Sun One Studio to get the functionality offered by the -D option of Workshop and Forte Developer 6?
    Thanks in advance.
    Saby

    Why wouldn't registry switches work for you?
    AFAIK, its the only way you are going to be able to modify the JRE (on Windows). You really need to be able to modify the registry if you want to work with iAS.

  • How to shutdown startup 11g OEM/GRID from Command Line

    Please describe how to shutdown and startup OEM/GRID 11g from command line and how to startup all of its services. Thanks in advance!

    After a some tests i found this method...
    SHUTDOWN
    srvctl stop listener -l LISTENER_NAME
    srvctl stop database -d DBNAME
    srvctl stop diskgroup -g VGGROUP
    srvctl stop asm
    crsctl stop has
    STARTUP
    crsctl start has
    srvctl start asm
    srvctl start database -d DBNAME
    Pls try before to use it and i hope it isn't late...

Maybe you are looking for