Академический Документы
Профессиональный Документы
Культура Документы
Home Oracle 11g TOP feature for DBA Oracle 11g Database new feature VIRAG SHARMA BLOG
Introduction
Oracle XE is free product from oracle for free to develop, deploy, and distribute. Database XE based on the Oracle Database 10g Release 2 code base that's free to develop, deploy, and distribute Developers, educators, across world and various industries are using Oracle Database XE to easily
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]
oraclexemadeeasy - viragsharma
develop applications. Oracle Database XE is good database for following communicating Educational institutions DBA Training Developer like PHP , XML .NET java Free software Vendor Students Limitations 1GB memory (max) 4GB disk space (max) one database (max)
Oracle XE installtion
Installation Presentation Oracle XE Installation on Linux Oracle XE Installation on Windows
Preparing... ########################################### [100%] 1:oracle-xe-univ ########################################### [100%] Executing Post-install steps... You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database. # rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
Preparing... ########################################### [100%] 1:oracle-xe-univ ########################################### [100%] Executing Post-install steps... You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]
oraclexemadeeasy - viragsharma
# /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. Specify the HTTP port that will be used for Oracle Application Express [8080]: Specify a port that will be used for the database listener [1521]:1525 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: Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]: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" [root@apps001 ~]#
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]
oraclexemadeeasy - viragsharma
SYSAUX 447 3 450 1 USERS 2 98 100 98 SYSTEM 336 4 340 1 UNDO 12 78 90 87 SQL> select * from v$tempfile; FILE# CREATION_CHANGE# CREATION_ TS# RFILE# STATUS ENABLED ---------- ---------------- --------- ---------- ---------- ------- ---------BYTES BLOCKS CREATE_BYTES BLOCK_SIZE ---------- ---------- ------------ ---------NAME -------------------------------------------------------------------------------1 213548 28-MAY-07 3 1 ONLINE READ WRITE 20971520 2560 20971520 8192 C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP.DBF
On SQL Command Line prompt, enter the following command: SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
ORACLE XE perfoamnce
Run following command when you start database
EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot; ------ run your sqls --again run snapshot ----EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]
oraclexemadeeasy - viragsharma
Once done run awrrpt.sql from oracle_home\rdbms\admin as sysdba, it will give you details about your system performance in txt/html format
SQL> select * from v$option SQL> / PARAMETER VALUE ------------------------------------------------------- ----------Partitioning FALSE Objects TRUE Real Application Clusters FALSE Advanced replication FALSE Bit-mapped indexes FALSE Connection multiplexing TRUE Connection pooling TRUE Database queuing TRUE Incremental backup and recovery TRUE Instead-of triggers TRUE Parallel backup and recovery FALSE Parallel execution FALSE Parallel load TRUE Point-in-time tablespace recovery FALSE Fine-grained access control FALSE Proxy authentication/authorization TRUE Change Data Capture FALSE Plan Stability TRUE Online Index Build FALSE Coalesce Index FALSE Managed Standby FALSE Materialized view rewrite FALSE Materialized view warehouse refresh FALSE Database resource manager FALSE Spatial FALSE Visual Information Retrieval FALSE Export transportable tablespaces FALSE Transparent Application Failover TRUE Fast-Start Fault Recovery FALSE Sample Scan TRUE Duplexed backups FALSE Java FALSE OLAP Window Functions TRUE Block Media Recovery FALSE Fine-grained Auditing FALSE Application Role FALSE Enterprise User Security FALSE Oracle Data Guard FALSE
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]
oraclexemadeeasy - viragsharma
Oracle Label Security FALSE OLAP FALSE Table compression FALSE Join index FALSE Trial Recovery FALSE Data Mining FALSE Online Redefinition FALSE Streams Capture FALSE File Mapping FALSE Block Change Tracking FALSE Flashback Table FALSE Flashback Database FALSE Data Mining Scoring Engine FALSE Transparent Data Encryption FALSE Backup Encryption FALSE Unused Block Compression FALSE 54 rows selected.
XE database troubleshooting
1) 2) 3) 4) 5) check database is up or not "ps -aef |egrep "xe|pmon" check listener is up or not "lsnrctl status" Check/Run "tnsping xe" and sqlplus system/<password>@xe is working or not run "netstat -a" port is in use or not!! . Once http start working "lsnrctl status" will show http entry like
[b](DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=hostname)(PORT=8080)) (Presentation=HTTP)(Session=RAW)) [/b] 6) for home page use link http://127.0.0.1:8080/apex (use port what you configured, Default is 8080) 7) Check sqlnet.ora , some time domain entry create problem for connect string 8) Check alert.log/alert<SID>.log for any error.
Errors in file /usr/lib/oracle/xe/app/oracle/admin/XE/udump/xe_ora_6574.trc: ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], [] USER: terminating instance due to error 600
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]
oraclexemadeeasy - viragsharma
To over come this issue make sure /etc/host have 127.0.0.1 and host entry like given below
Why my XE not start automatically on Linux, why my Linux reboot hanged to starting listener.
I have installed XE on AS 4 and found it not start automatically even entry is there in rc2.d , anyway, When checked, also got same error
Starting ORACLE instance (normal) Cannot determine all dependent dynamic libraries for /proc/self/exe The open() system call failed for the file /proc/self/exe Linux Error: 13: Permission denied
Login as oracle user , from root su - oracle cd /usr/lib/oracle/xe/app/oracle/product/10.2.0./server/bin bash (or ksh) . ./oracle_env.sh sqlplus "/ as sysdba" shutdown immediate; startup exit lsnrctl start Then connect to http://127.0.0.1:8080/apex Looks like there is issue with shell script for starting XE database , let us run manually and check why # sh +x ./oracle-xe start
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]
oraclexemadeeasy - viragsharma
/etc/init.d/functions: line 227: `/etc/redhat-lsb/lsb_killproc': not a valid identifier Open /etc/init.d/oracle-xe and edit it # vi oracle-xe # Source fuction library if [ -f /lib/lsb/init-functions ] then # . /lib/lsb/init-functions <- Commaneted this line echo " " <- Added new line elif [ -f /etc/init.d/functions ].. Now check start and stop is working or not # sh +x ./oracle-xe start test Starting Oracle Database 10g Express Edition Instance. # sh +x ./oracle-xe stop test Shutting down Oracle Database 10g Express Edition Instance. Stopping Oracle Net Listener. #
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]
oraclexemadeeasy - viragsharma
# ls -l /swapfile -rw-r--r-- 1 root root 419430400 Jun 4 16:21 /swapfile # mkswap /swapfile Setting up swapspace version 1, size = 419426 kB # swapon /swapfile # free total used free shared buffers cached Mem: 1001916 625012 376904 0 11516 522524 -/+ buffers/cache: 90972 910944 Swap: 1392624 0 1392624
Download Pl Sql
Download the 30 day trail version for PL/SQL IDE!
www.allroundautomations.com
Reference
Oracle Database Express Edition 10g Release 2 (10.2) Documentation Library Oracle Database 10g Express Edition Tutorial
The views expressed are my own and not necessarily those of my current or past employer. The views and opinions expressed by visitors to this blog are theirs and do not necessarily reflect mine.
powered by Inteliture.com .
Sign in | Recent Site Activity | Terms | Report Abuse | Print page | Powered by Google Sites
http://sites.google.com/site/viragsharma/oraclexemadeeasy[28-12-2011 23:28:30]