Upgrade to Apex 4.0
Hi again
After installing Oracle 10g Express Edition , let's upgrade apex to apex 4.0.
But first, we need to check if SQL plus can be called normally from the terminal ,so open the terminal and type sqlplus. If any problem happened you need to do the yellow steps first, if not skip the yellow steps.
If the following error message appeared
if any problem happened and you cannot login , then do the following
THE END
Good luck every one.
After installing Oracle 10g Express Edition , let's upgrade apex to apex 4.0.
But first, we need to check if SQL plus can be called normally from the terminal ,so open the terminal and type sqlplus. If any problem happened you need to do the yellow steps first, if not skip the yellow steps.
1. Fix language error :
Type the following in terminal/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/./oracle_env.sh
If the following error message appeared
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not foundThen you need to modify the file oracle_env.sh , the lines from 114,you need to remove the if statements and leave the line "locale=$LANG" using the following command
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found
sudo nano /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.shThen remove if statements then press Ctrl+x to exit and save the file.
2. Set ORACLE_HOME variable:
You need to type the following commands in terminal
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_HOME
ORACLE_SID=XE
export ORACLE_SID
NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
export NLS_LANG
PATH=$ORACLE_HOME/bin:$
PATH
export PATH
3. Download apex 4.0:
4. Unzip the folder in /tmp/ directory.
5. Type the following commands
cd /tmp/apex
sqlplus / as sysdba
SQL> @apexins SYSAUX SYSAUX TEMP /i/
6. Wait for 10-15 minutes
7. Finish upgrading phase:
Type the following:
sqlplus / as sysdba
SQL>@apxldimg.sql /tmp
8. Login
Go to http://127.0.0.1:8080/apex , user name :ADMIN ,password:oracleif any problem happened and you cannot login , then do the following
sqlplus / as sysdbaand set the ADMIN password.
SQL>@apxchpwd.sql
THE END
Good luck every one.
thanks for the post , very useful ...
ReplyDeletethanks a lot doha. Very helpful :))
ReplyDelete