set verify off feedback off pagesize 0 heading off linesize 4000 trimspool on trimout on wrap on serveroutput off arraysize 1
set
verify off
feedback off
pagesize 0
heading off
linesize 4000
trimspool on
trimout on
wrap on
serveroutput off
arraysize 1
From http://download.oracle.com/docs/cd/B19306_01/server.102/b15658/strt_stp.htm#CFAHAHGA
2.2.2 Automating Database Startup and Shutdown on Other Operating Systems
To automate database startup and shutdown by using the dbstart and dbshut scripts:
Log in as the root user.
Edit the oratab file for your platform.
To open the file, use one of the following commands:
On Solaris:
# vi /var/opt/oracle/oratab
On AIX, HP-UX, Linux, and Tru64 UNIX:
# vi /etc/oratab
Database entries in the oratab file are displayed in the following format:
SID:ORACLE_HOME:{Y|N|W}
In this example, the values Y and N specify whether you want the scripts to start up or shut down the database, respectively. For each database for which you want to automate shutdown and startup, first determine the instance identifier (SID) for that database, which is identified by the SID in the first field. Then, change the last field for each to Y.
You can set dbstart to autostart a single-instance database that uses an Automatic Storage Management installation that is auto-started by Oracle Clusterware. This is the default behavior for an Automatic Storage Management cluster. If you want to do this, then you must change the oratab entry of the database and the Automatic Storage Management installation to use a third field with the value W and N, respectively. These values specify that dbstart auto-starts the database only after the Automatic Storage Management instance is started.
Note:
If you add new database instances to the system and if you want to automate startup for them, then you must edit the entries for those instances in the oratab file.
export DISPLAY=`who -m | awk ‘{print $6}’ | sed -e ’s/(//g’ -e ’s/)//g’`:0
http://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/
http://forums.oracle.com/forums/thread.jspa?threadID=848385&tstart=45
This is nothing to worry about – update-rc.d: warning: /etc/init.d/oracle-xe missing LSB style header
After it’s been installed, configure it:
sudo /etc/init.d/oracle-xe configure
Configure stuff, I used all defaults I believe.
Next in order to run sqlplus to do anything you need to source the config file:
source /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/oracle_env.sh
Which in turn gave me this error:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found
Which is entirely related to what shell that it is trying to run on. In the file definition you’ll find #! /bin/sh and if you change this to #! /bin/bash it will run properly. Fixed!
Now doing a – ‘which sqlplus’ should return a path to sqlplus like this:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus
SQLPLUS /NOLOG
CONNECT username/password
All of this so I can ‘Enable Remote HTTP Connection with SQL Command Line’
EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
Now I have to reconfigure port forwarding on my router at home in order to remotely access the Oracle Admin Website and router.
To access the Oracle Admin Site remote I should be able to go to:
http://host:port/apex
Where host = my domain name or IP and port = the default 8080 port I setup
I need to port forward 8080 requests to the server but I can’t remotely change my router yet.
I currently have it forwarding port 80 to the server but in order to change the router remotely I’m supposed to access myip:80
So one of those two needs to change.
Change HTTP or FTP port via SQLPLUS
SQL> begin
2 dbms_xdb.sethttpport(‘80′);
3 dbms_xdb.setftpport(‘2100′);
4 end;
5 /
CONNECT username/password
All of this so I can ‘Enable Remote HTTP Connection with SQL Command Line’ EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);Now I have to reconfigure port forwarding on my router at home in order to remotely access the Oracle Admin Website and router.To access the Oracle Admin Site remote I should be able to go to:http://host:port/apexWhere host = my domain name or IP and port = the default 8080 port I setupI need to port forward 8080 requests to the server but I can’t remotely change my router yet.I currently have it forwarding port 80 to the server but in order to change the router remotely I’m supposed to access myip:80So one of those two needs to change.
Change HTTP or FTP port via SQLPLUS
SQL> begin 2 dbms_xdb.sethttpport(‘80′); 3 dbms_xdb.setftpport(‘2100′); 4 end; 5 /
So one of those two needs to change.
Change HTTP or FTP port via SQLPLUS
SQL> begin
2 dbms_xdb.sethttpport(‘80′);
3 dbms_xdb.setftpport(‘2100′);
4 end;
5 /
sqlplus -S username/pw@sid @sqlfile.sql outputfile.txt args
I love how on the internet today, I can start off reading about the top 5 text editors from Lifehacker, and somehow end up looking at some Web Design girl’s twitter feed which links to her site which links to her blog which goes to the youtube video below.
1) http://www.thefuntheory.com/ – With this terrific video that makes me laugh at human kind – http://www.youtube.com/watch?v=2lXh2n0aPyw&feature=player_embedded#
2) A text editor with an extremely basic but cool site – http://cream.sourceforge.net/ . The site layout is so simple but… I love it.
Typically, a CIO is involved with analyzing and reworking existing business processes, with identifying and developing the capability to use new tools, with reshaping the enterprise’s physical infrastructure and network access, and with identifying and exploiting the enterprise’s knowledge resources. Many CIOs head the enterprise’s efforts to integrate the Internet into both its long-term strategy and its immediate business plans. The CIO is evolving into a role where he/she is creating and monitoring business value from IT assets.
In general, the CTO is concerned with the architecture, design & development, security, operational integrity, system support and maintenance across the IT organization. The CTO is responsible for delivering IT solutions with a focus on technical problem solving. In contrast, the CIO is focused on the IT strategy formulation, planning and strategic alignment of IT with the corporate objectives. The CIO ensures that return on IT investments are realized as planned.