jump to navigation

Instalasi Oracle XE pada Linux Centos 5.0 Desember 27, 2008

Posted by setijoagus in Oracle Install, oracle.
Tags:
add a comment

Setelah sukses melakukan download oracle-xe-10.2.0.1-1.0.i386.rpm, kita dapat segera melakukan proses instalasi.
a. lakukan instalasi menggunakan rpm
[root@oracle test]# rpm -ivh oracle-xe-10.2.0.1-1.0.i386.rpm
Preparing… ########################################### [100%]
1:oracle-xe ########################################### [100%]
Executing Post-install steps…
You must run ‘/etc/init.d/oracle-xe configure’ as the root user to
configure the database.
b. Menjalankan script /etc/init.d/oracle-xe configure
[root@oracle test]# /etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
————————————————-
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.
c. Mengisi port HTTP Oracle Application Express, pilih default 8080
Specify the HTTP port that will be used for Oracle Application Express [8080]:

d. Mengisi port Listener database, pilih default 1521
Specify a port that will be used for the database listener [1521]:

e. Mengisi password SYS dan SYSTEM
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:

f. Mensetup apakah Oracle Database 10g Express Edition, selalu startup setiap boot, pilih y
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:
Starting Oracle Net Listener…Done
Configuring Database…Done
Starting Oracle Database 10g Express Edition Instance…Done
Installation Completed Successfully.
To access the Database Home Page go to “http://127.0.0.1:8080/apex”

Instalasi Oracle XE pada Windows XP Desember 27, 2008

Posted by setijoagus in Oracle Install, oracle.
Tags:
2 comments

Setelah sukses melakukan download OracleXe
a. Double click pada file OracleXE.exe untuk memulai melakukan instalasi Oracle XE database
b. Klik ‘Next’
c. Menyetujui License Agreement. klik ‘Next’
d. Menentukan folder untuk install Oracle XE. klik ‘Next’
e. Menentukan password dari SYS & SYSTEM, misalkan dalam contoh ini menggunakan password xe, klik ‘Next’
f. Klik ‘Install’ untuk memulai instalasi.
g. Tunggu sampai proses instalasi selesai
h. Periksa dengan klik ‘Launch Database homepage’ dan klik ‘Finish’.
i. Logon ke database home page untuk memastikan apakah database telah diinstal dengan sukses. Enter username dengan ‘SYSTEM’ dan password dalam contoh ini xe, kemudian enter xe.
j. Jika tampilan seperti gambar di bawah ini, maka instalasi Oracle XE telah berhasil, klik ‘Logout’ untuk keluar.

apex01

timesten performance with tptbm Desember 15, 2008

Posted by setijoagus in Timesten, oracle.
Tags:
add a comment

1. setup env & create DSN
[root@test ~]# cd /opt/TimesTen/tt70/demo/
[root@test demo]# sh ttdemoenv.sh
LD_LIBRARY_PATH set to /opt/TimesTen/tt70/lib:/u01/app/oracle/product/11.1.0/db_1/lib:/lib:/usr/lib
ANT_HOME set to /opt/TimesTen/tt70/3rdparty/ant
PATH set to /opt/TimesTen/tt70/bin:/opt/TimesTen/tt70/demo/performance:/opt/TimesTen/tt70/demo/ttclasses:/opt/TimesTen/tt70/demo/xla:/opt/TimesTen/tt70/demo/xla/xlaPersistent:/opt/TimesTen/tt70/demo/tutorial/java:/opt/TimesTen/tt70/3rdparty/ant/bin:/u01/app/oracle/product/11.1.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin
CLASSPATH set to /opt/TimesTen/tt70/lib/classes14.jar:/opt/TimesTen/tt70/lib/timestenjmsxla.jar:/opt/TimesTen/tt70/3rdparty/jms1.1/lib/jms.jar:/opt/TimesTen/tt70/demo:/opt/TimesTen/tt70/demo/tutorial/java:.:/u01/app/oracle/product/11.1.0/db_1/JRE:/u01/app/oracle/product/11.1.0/db_1/jlib:/u01/app/oracle/product/11.1.0/db_1/rdbms/jlib
NOTE: The demos use system DSNs defined in
/var/TimesTen/sys.odbc.ini
To use your own DSNs, they must be defined in ~/.odbc.ini, or
you may set the environment variable ODBCINI to point to
the correct file.

2. install tools tptbm
[root@test ~]# cd /opt/TimesTen/tt70/demo/performance/
[root@test performance]# make -f Makefile tptbm
gcc -Os -finline-functions -I/opt/TimesTen/tt70/include -I/opt/TimesTen/tt70/demo/common -I/opt/TimesTen/tt70/include/ttclasses -o tptbm.o -c tptbm.c
gcc -Os -finline-functions -I/opt/TimesTen/tt70/include -I/opt/TimesTen/tt70/demo/common -I/opt/TimesTen/tt70/include/ttclasses -o utils.o -c /opt/TimesTen/tt70/demo/common/utils.c
gcc -Os -finline-functions -I/opt/TimesTen/tt70/include -I/opt/TimesTen/tt70/demo/common -I/opt/TimesTen/tt70/include/ttclasses -o ttgetopt.o -c /opt/TimesTen/tt70/demo/common/ttgetopt.c
gcc -o tptbm tptbm.o utils.o ttgetopt.o -L/opt/TimesTen/tt70/lib -Wl,-rpath,/opt/TimesTen/tt70/lib -ltten -lm

3. test timesten performance
a. test 1
[root@test performance]# ./tptbm -proc 4 -read 85 -insert 10 tptbmdata_tt70
Connecting to the data source
Populating benchmark data store
Waiting for 4 processes to initialize
Beginning execution with 4 processes: 85% read, 5% update, 10% insert, 0% delete

Elapsed time: 1.3 seconds
Transaction rate: 31570.6 transactions/second

b. test 2
[root@test performance]# ./tptbm -proc 4 -read 85 -insert 10 tptbmdata_tt70
Connecting to the data source
Populating benchmark data store
Waiting for 4 processes to initialize
Beginning execution with 4 processes: 85% read, 5% update, 10% insert, 0% delete

Elapsed time: 312.0 msec
Transaction rate: 128205.1 transactions/second

c. test 3
[root@test performance]# ./tptbm -proc 4 -read 85 -insert 10 tptbmdata_tt70
Connecting to the data source
Populating benchmark data store
Waiting for 4 processes to initialize
Beginning execution with 4 processes: 85% read, 5% update, 10% insert, 0% delete

Elapsed time: 1.2 seconds
Transaction rate: 33726.8 transactions/second

Install timesten in Oracle Entripres Linux 5 Desember 15, 2008

Posted by setijoagus in Timesten, oracle.
Tags:
add a comment

1. extract timesten
[oracle@test ~]$ tar xvf timesten70500.linux86.tar.gz
[oracle@test ~]$ cd linux86/
[oracle@test linux86]$ ls
3rdparty doc LINUX86 setup.sh
behaviorchanges.txt install.pl README.html uninst.sh

2. setup timesten
[oracle@test linux86]$ ./setup.sh
ERROR: You do not have permissions to create the directory
/etc/TimesTen. The /etc/TimesTen directory needs to be
created for the instance registry, and its ownership
and permissions set appropriately. Please refer to the
installation guide for assistance.

[oracle@test linux86]$ pwd
/home/oracle/linux86
[oracle@test linux86]$ su – root
Password:
[root@test ~]# cd /home/oracle/linux86/
[root@test linux86]# ./setup.sh
NOTE: Each TimesTen installation is identified by a unique instance name.
The instance name must be a non-null alphanumeric string, not longer
than 255 characters.

a. instance name : tt70
Please choose an instance name for this installation? [ tt70 ]
Instance name will be ‘tt70′.
Is this correct? [ yes ]

b. select product : 1 Oracle TimesTen In-Memory Database
Please select a product :
[1] Oracle TimesTen In-Memory Database
[2] Oracle In-Memory Database Cache
Which product would you like to install? [ 1 ]

c. components : 1 Client/Server and Data Manager
Of the three components:
[1] Client/Server and Data Manager
[2] Data Manager Only
[3] Client Only

Which would you like to install? [ 1 ]

d. folder : /opt
Where would you like to install the tt70 instance of TimesTen? [ /opt ]
Installing into /opt/TimesTen/tt70 …
Creating /opt/TimesTen/tt70 …
Uncompressing …

e. DemoDataStore directory : /var/TimesTen/tt70/DemoDataStore
The TimesTen Demo applications can take up to 64 Mbytes of disk space.
Depending on how your system is configured, you may not want to create the
DemoDataStore directory in the default location,
/var/TimesTen/tt70/DemoDataStore

Where would you like to create the DemoDataStore directory? [ /var/TimesTen/tt70 ]
Creating /var/TimesTen/tt70/DemoDataStore …

f. port number : 17000
NOTE: All installations that replicate to each other must use the same daemon
port number that is set at installation time. The daemon port number can
be verified by running ‘ttVersion’.
The default port number is 17000.

Do you want to use the default port number for the TimesTen daemon? [ yes ]
The daemon will run on the default port number (17000).
Processing /opt/TimesTen/tt70/PERL/perl.tar …

g. enable datastore access control : yes
Would you like to enable datastore access control? [ no ] yes
The daemon logs will be located in /var/TimesTen/tt70
Would you like to specify a different location for the daemon logs? [ no ]

NOTE: It appears that you are running version 4.1 of the g++
compiler. TimesTen ships with multiple sets of client libraries and server
binaries : one built with g++ 3.2.3, one with g++ 3.4.6, and one with
g++ 4.1.0. The installer has created links to the 4.1.0 library in the
<install_dir>/lib directory and to the 4.1.0 server binary in the
<install_dir>/bin directory. If you want to use a different compiler,
please modify the links to point to the desired library and server binary.

h. log all server Connects/Disconnects : yes
Installing server components …
Would you like to log all server Connects/Disconnects? [ yes ]
What is the TCP/IP port number that you want the TimesTen Server to listen on? [ 17002 ]
Starting TimesTen Daemon : [ OK ]

i. Installing client components, name of the host, TCP/IP port number, name of the instance
Installing client components …
What is the name of the host running the TimesTen server? [ test.localdomain ]
What is the TCP/IP port number that the TimesTen server is listening on? [ 17002 ]
What is the name of the instance running the TimesTen server? [ tt70 ]
Creating new /var/TimesTen/sys.ttconnect.ini
Extracting 3rd party tools …

j. install documentation
Would you like to install the documentation? [ yes ]
Where would you like to create the doc directory (s=skip)? [ /opt/TimesTen/tt70/doc ]
The directory /opt/TimesTen/tt70/doc does not exist.
Do you want to create it? [ yes ]
End of TimesTen installation.

3. Status TimesTen
[root@test ~]# /opt/TimesTen/tt70/bin/ttstatus
TimesTen status report as of Tue Dec 16 00:59:13 2008
Daemon pid 3370 port 17000 instance tt70
TimesTen server pid 3388 started on port 17002
No TimesTen webserver running
————————————————————————
Access control enabled.
End of report

4. Start / Stop TimesTen
[root@test ~]# /opt/TimesTen/tt70/bin/ttdaemonadmin -stop
TimesTen Daemon stopped.

[root@test ~]# /opt/TimesTen/tt70/bin/ttstatus
ttStatus: Could not connect to the TimesTen daemon.
If the TimesTen daemon is not running, please start it
by running “ttDaemonAdmin -start”.

[root@test ~]# /opt/TimesTen/tt70/bin/ttdaemonadmin -start
TimesTen Daemon startup OK.
[root@test ~]# /opt/TimesTen/tt70/bin/ttstatus
TimesTen status report as of Tue Dec 16 00:59:13 2008
Daemon pid 3370 port 17000 instance tt70
TimesTen server pid 3388 started on port 17002
No TimesTen webserver running
————————————————————————
Access control enabled.
End of report

md5sum Desember 15, 2008

Posted by setijoagus in Linux.
Tags:
add a comment

Setelah download iso file, biasanya saya mengabaikan untuk memeriksa apakah iso yang sudah di d/l valid atau tidak. Umumnya langsung bakar ke cd atau dvd.
Sebenarnya setiap kali selesai download iso file, sebaiknya diperiksa md5sum-nya caranya sangat simple (di linux) tinggal jalankan perintah seperti di bawah ini :
contohnya iso file openSUSE-11.0-KDE4-LiveCD-i386.iso

[root@test ~]# md5sum openSUSE-11.0-KDE4-LiveCD-i386.iso
83b1a04f18d6782cfe0407edadac377f openSUSE-11.0-KDE4-LiveCD-i386.iso

dari file txt md5sum di web dinyatakan kalau openSUSE-11.0-KDE4-LiveCD-i386.iso adalah :
83b1a04f18d6782cfe0407edadac377f openSUSE-11.0-KDE4-LiveCD-i386.iso

Kalau di windows dapat menggunakan md5sum.exe yang dapat di d/l di http://downloads.activestate.com/contrib/md5sum/Windows/md5sum.exe
D:\> md5sum.exe openSUSE-11.0-KDE4-LiveCD-i386.iso
83b1a04f18d6782cfe0407edadac377f *openSUSE-11.0-KDE4-LiveCD-i386.iso

Automatic Startup – Shutdown LISTENER ORACLE 11g Desember 9, 2008

Posted by setijoagus in Oracle Administration, oracle.
Tags: ,
12 comments

1. create script status listener
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi statuslsnr
#!/bin/sh
# Start the oracle listener
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=mkt
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=ubs
export ORACLE_TERM=xterm
$ORACLE_HOME/bin/lsnrctl status
exit 0

[oracle@mkt ~]$ chmod u+x statuslsnr

2. create script start listener
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi startlsnr
#!/bin/sh
# Start the oracle listener
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=mkt
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=ubs
export ORACLE_TERM=xterm
$ORACLE_HOME/bin/lsnrctl start
exit 0

[oracle@mkt bin]$ chmod u+x startlsnr

3. create script stop listener
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi stoplsnr
#!/bin/sh
# Start the oracle listener
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=mkt
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=ubs
export ORACLE_TERM=xterm
$ORACLE_HOME/bin/lsnrctl stop
exit 0

[oracle@mkt bin]$ chmod u+x stoplsnr

4. create script status,start dan stop listener
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi listener11g
#!/bin/sh
#
# chkconfig: 345 51 49
# description: startup and shutdown the Oracle 11g listener
#
echo “Oracle 11g listener start/stop/status”
ORA_OWNER=oracle
ORA_BASE=/u01/app/oracle
ORA_HOME=$ORA_BASE/product/11.1.0/db_1

case “$1″ in
’start’)
# Start the listener
echo -n “Starting the Listener for 11g: “
su – $ORA_OWNER -c $ORA_HOME/bin/startlsnr
echo
;;

’stop’)
# Stop the listener
echo -n “Shutting down Listener for 11g: “
su – $ORA_OWNER -c $ORA_HOME/bin/stoplsnr
echo
;;

’status’)
# Status the listener
echo -n “Status Listener for 11g: “
su – $ORA_OWNER -c $ORA_HOME/bin/statuslsnr
echo
;;

‘restart’)
# Restart the Oracle databases:
echo -n “Restarting Listener for 11g:”
$0 stop
$0 start
echo
;;
*)

echo “Usage: listener11g [ status | start | stop | restart }"
exit 1
esac
exit 0

[oracle@ubs bin]$ chmod u+x listener11g

4. copy script listener11g to /etc/rc.d/init.d/
[oracle@mkt bin]$ su – root
Password:
[root@mkt ~]# cp /u01/app/oracle/product/11.1.0/db_1/bin/listener11g /etc/rc.d/init.d/
[root@mkt ~]# chmod 700 /etc/rc.d/init.d/listener11g

5. test script listener11g login as root
[root@mkt ~]# cd /etc/rc.d/init.d
[root@mkt init.d]# ./listener11g
Oracle 11g listener start/stop/status
Usage: listener11g [ status | start | stop | restart }

[root@mkt init.d]# ./listener11g status
Oracle 11g listener start/stop/status
Status Listener for 11g:
LSNRCTL for Linux: Version 11.1.0.6.0 – Production on 09-DEC-2008 14:41:00
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mkt.localdomain)(PORT=1521)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 – Production
Start Date 09-DEC-2008 07:55:38
Uptime 0 days 6 hr. 45 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/mkt/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mkt.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary…
Service “mkt” has 1 instance(s).
Instance “mkt”, status READY, has 1 handler(s) for this service…
Service “mktXDB” has 1 instance(s).
Instance “mkt”, status READY, has 1 handler(s) for this service…
Service “mkt_XPT” has 1 instance(s).
Instance “mkt”, status READY, has 1 handler(s) for this service…
The command completed successfully

[root@mkt init.d]# ./listener11g restart
Oracle 11g listener start/stop/status
Restarting Listener for 11g:Oracle 11g listener start/stop/status
Shutting down Listener for 11g:
LSNRCTL for Linux: Version 11.1.0.6.0 – Production on 09-DEC-2008 14:42:02

Copyright (c) 1991, 2007, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mkt.localdomain)(PORT=1521)))
The command completed successfully

Oracle 11g listener start/stop/status
Starting the Listener for 11g:
LSNRCTL for Linux: Version 11.1.0.6.0 – Production on 09-DEC-2008 14:42:07

Copyright (c) 1991, 2007, Oracle. All rights reserved.

Starting /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait…

TNSLSNR for Linux: Version 11.1.0.6.0 – Production
System parameter file is /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/mkt/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mkt.localdomain)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mkt.localdomain)(PORT=1521)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 – Production
Start Date 09-DEC-2008 14:42:07
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/mkt/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mkt.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully

6. chkconfig script listener11g
[root@mkt init.d]# /sbin/chkconfig –add listener11g
[root@mkt init.d]# /sbin/chkconfig –list listener11g
listener11g 0:off 1:off 2:off 3:on 4:on 5:on 6:off
[root@mkt init.d]# /sbin/chkconfig listener11g on

Automatic Startup – Shutdown database ORACLE 11g Desember 9, 2008

Posted by setijoagus in Oracle Administration, Oracle Install, oracle.
Tags: ,
1 comment so far

1. create script start database
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi startora11g
#!/bin/sh
# Start the oracle database
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=mkt
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_TERM=xterm
$ORACLE_HOME/bin/dbstart
exit 0

[oracle@mkt bin]$ chmod u+x startora11g

2. create script stop database
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi stopora11g
#!/bin/sh
# Stop the oracle database
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=mkt
export ORACLE_TERM=xterm
$ORACLE_HOME/bin/dbshut
exit 0
[oracle@mkt bin]$ chmod u+x stopora11g

3. create script restart, start & stop
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi oracle11g
#!/bin/sh
#
# chkconfig: 345 51 49
# description: startup and shutdown the Oracle 8i database
#
echo “Oracle 11g database start/stop/restart”
ORA_OWNER=oracle
ORA_BASE=/u01/app/oracle
ORA_HOME=$ORA_BASE/product/11.1.0/db_1

case “$1″ in
’start’)
# Start the database
echo -n “Starting the database for 11g: “
su – $ORA_OWNER -c $ORA_HOME/bin/startora11g
echo
;;

’stop’)
# Stop the database
echo -n “Shutting down database for 11g: “
su – $ORA_OWNER -c $ORA_HOME/bin/stopora11g
echo
;;

‘restart’)
# Restart the Oracle databases:
echo -n “Restarting database for 11g: “
$0 stop
$0 start
echo
;;
*)

echo “Usage: oracle11g [ start | stop | restart }"
exit 1
esac
exit 0
[oracle@mkt bin]$ chmod u+x oracle11g

4. Login root & edit /etc/oratab.
[oracle@mkt bin]$ su – root
Password:
[root@mkt ~]# vi /etc/oratab
mkt:/u01/app/oracle/product/11.1.0/db_1:N
menjadi
mkt:/u01/app/oracle/product/11.1.0/db_1:Y

5. copy script oracle11g to /etc/rc.d/init.d/
[root@mkt ~]# cp /u01/app/oracle/product/11.1.0/db_1/bin/oracle11g /etc/rc.d/init.d/
[root@mkt ~]# chmod 700 /etc/rc.d/init.d/oracle11g

6. test script oracle11g start, stop, restart with login as root
[root@mkt ~]# cd /etc/rc.d/init.d
[root@mkt init.d]# ./oracle11g
Oracle 11g database start/stop/restart
Usage: oracle11g [ start | stop | restart }

[root@mkt init.d]# ./oracle11g start
Oracle 11g database start/stop/restart
Starting the database for 11g: ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
Usage: /u01/app/oracle/product/11.1.0/db_1/bin/dbstart ORACLE_HOME
Processing Database instance “mkt”: log file /u01/app/oracle/product/11.1.0/db_1/startup.log

[root@mkt init.d]# ./oracle11g stop
Oracle 11g database start/stop/restart
Shutting down database for 11g: ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener
Usage: /u01/app/oracle/product/11.1.0/db_1/bin/dbshut ORACLE_HOME
Processing Database instance “mkt”: log file /u01/app/oracle/product/11.1.0/db_1/shutdown.log

[root@mkt init.d]# ./oracle11g restart
Oracle 11g database start/stop/restart
Restarting database for 11g: Oracle 11g database start/stop/restart
Shutting down database for 11g: ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener
Usage: /u01/app/oracle/product/11.1.0/db_1/bin/dbshut ORACLE_HOME
Processing Database instance “mkt”: log file /u01/app/oracle/product/11.1.0/db_1/shutdown.log

Oracle 11g database start/stop/restart
Starting the database for 11g: ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
Usage: /u01/app/oracle/product/11.1.0/db_1/bin/dbstart ORACLE_HOME
Processing Database instance “mkt”: log file /u01/app/oracle/product/11.1.0/db_1/startup.log

7. chkconfig pada script oracle11g
[root@mkt init.d]# /sbin/chkconfig –add oracle11g
[root@mkt init.d]# /sbin/chkconfig –list oracle11g
oracle11g 0:off 1:off 2:off 3:on 4:on 5:on 6:off
[root@mkt init.d]# /sbin/chkconfig oracle11g on

Data Modeling Early Adopter 2 for reverse engineering Desember 5, 2008

Posted by setijoagus in Oracle Tools, oracle.
Tags: , ,
add a comment

Data Modeling Early Adopter 2 for reverse engineering

info from :
1. email oracle
Download Oracle SQL Developer Data Modeling Early Adopter 2
Following a successful first early adopter release of Oracle SQL Developer Data Modeling, we have rolled in a lot of changes and updates into an Early Adopter 2 release. Visit the Oracle SQL Developer Data Modeling homepage on OTN to download the product and test the updated release. Download.
2. my friend : Rudi K.

i try install Oracle SQL Developer Data Modeling Early Adopter 2 for reverse engineering

Maximum SGA – Oracle 11g 64 bit – Centos 5.2 64 bit (2) Desember 1, 2008

Posted by setijoagus in Linux, oracle, oracle Performance.
Tags: , , ,
3 comments

SGA more than default oracle install ?
SGA >= 4GB ?

my hardware :
11g01
11g021. info my linux box
model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
cpu MHz : 1992.000
processor : 4

2. fresh install : default SGA = 6464M
[oracle@test ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 19G 5.3G 13G 30% /
/dev/sda5 99G 5.8G 88G 7% /u01
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 7.9G 3.8G 4.1G 48% /dev/shm

[oracle@test ~]$ sqlplus / as sysdba
SQL> startup
ORACLE instance started.
Total System Global Area 6747725824 bytes
Fixed Size 2145024 bytes
Variable Size 3623879936 bytes
Database Buffers 3087007744 bytes
Redo Buffers 34693120 bytes
Database mounted.
Database opened.

SQL> show parameter target;
NAME TYPE VALUE
———————————— ———– ——————————
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
memory_max_target big integer 6464M
memory_target big integer 6464M
pga_aggregate_target big integer 0
sga_target big integer 0

SQL> show parameter sga;
NAME TYPE VALUE
———————————— ———– ——————————
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 6464M
sga_target big integer 0
SQL>

3. test SGA = 12G
SQL> alter system set memory_max_target=12G scope=spfile;
SQL> alter system set memory_target=12G scope=spfile;
SQL> alter system set sga_max_size=12G scope=spfile;
SQL> shutdown abort;
SQL> host

[oracle@test ~]$ su – root
[root@test ~]# umount shmfs
[root@test ~]# mount -t tmpfs shmfs -o size=12G /dev/shm
[root@test ~]# exit
[oracle@test ~]$ exit

SQL> startup;
ORACLE instance started.
Total System Global Area 1.2827E+10 bytes
Fixed Size 2148680 bytes
Variable Size 6039799480 bytes
Database Buffers 6777995264 bytes
Redo Buffers 7426048 bytes
Database mounted.
Database opened.

SQL> show parameter target;
NAME TYPE VALUE
———————————— ———– ——————————
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
memory_max_target big integer 12G
memory_target big integer 12G

pga_aggregate_target big integer 0
sga_target big integer 0

SQL> show parameter sga;
NAME TYPE VALUE
———————————— ———– ——————————
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 12G
sga_target big integer 0

4. test SGA = 14G
SQL> alter system set memory_max_target=14G scope=spfile;
SQL> alter system set memory_target=14G scope=spfile;
SQL> alter system set sga_max_size=14G scope=spfile;
SQL> shutdown abort;
SQL> host

[oracle@test ~]$ su – root
[root@test ~]# umount shmfs
[root@test ~]# mount -t tmpfs shmfs -o size=14G /dev/shm
[root@test ~]# exit
[oracle@test ~]$ exit

SQL> startup;
ORACLE instance started.
Total System Global Area 1.4965E+10 bytes
Fixed Size 2149960 bytes
Variable Size 6845104568 bytes
Database Buffers 8053063680 bytes
Redo Buffers 64946176 bytes
Database mounted.
Database opened.

SQL> show parameter target;
NAME TYPE VALUE
———————————— ———– ——————————
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
memory_max_target big integer 14G
memory_target big integer 14G

pga_aggregate_target big integer 0
sga_target big integer 0
SQL> show parameter sga;
NAME TYPE VALUE
———————————— ———– ——————————
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 14G
sga_target big integer 0
SQL>