রবিবার, ২৯ জুলাই, ২০১৮

Apex Install

Please flow flowing step to install apex 5.2 :

** Apex 5.2 installation you must need db 11g . Other version (lower from 5.2) support 10g or less.

1.Apex software folder keep desired drive (c,d,e,f) where u want to install apex software

I install my apex folder in “c” drive for your advantage & my apex folder name is “apex”.

Open cmd –>

cd C:\apex  [drive name:\apex software folder name]

    Your screen show as like after read desired folder bellow:

c:\apex [this is valid format for read apex folder]

connect to sqlplus as like –> sqlplus /nolog

    Connect sqlplus as sys dba –>  conn / as sysdba

    create a table-space for your apex user

SQL> CREATE TABLESPACE APEX_DATA datafile
‘C:\apex\APEX_data.DBF’
SIZE 1g;

     SQL> @apexins APEX_DATA APEX_DATA TEMP /i/

20/25 min needs for installation.

    SQL> @apxldimg.sql [after this command show bellow message for give location image folder]

enter vavue 1: C:\ [if install “C” drive] or D:\apex or D:\apex\images [if install except “C” drive]

    Without any error image directory created then run flowing script:

SQL> @apxconf.sql [if install “C” drive] or @\apex\apxconf.sql [if install except “C” drive]

8 . You need to create apex user [admin user show as default] and password

[password must be contain Upper case,Special character ,lower character & number as like “Test!1”

Default port generated “8080”  [if you don’t change port then enter for next step .
 
@apxchpwd.sql change password

    After this step you need to some alter statement:
    SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK;

User altered.

SQL> ALTER USER XDB ACCOUNT UNLOCK;

User altered.

SQL> ALTER USER APEX_040200 ACCOUNT UNLOCK; –version of release

User altered.

SQL> ALTER USER FLOWS_FILES ACCOUNT UNLOCK;

User altered.

SQL> ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;

User altere

sql> exit

N.B : All sql statement must be connect sysdba connection with sql.

Your Apex software install completed.

    For enjoying finally test your connection go to your web browser & write this port for apex test :

localhost:8080/apex

11.There are issues with the configuration of the Static Files in your environment.
Please consult the “Configuring Static File Support” section in the Application Express Installation Guide
N.B :If u face flowing above error then —–>
conn / as sysdba —> Run apex_epg_config.sql. For example:

sql> @apex_epg_config.sql
—>enter value 1: C:\ [if install “C” drive] or D:\apex or D:\apex\images [if install except “C” drive]

    If you want to uninstall apex software connect with sysdba and run this script:

–> SQL>  @apxremov.sql

Please tuning with me for next tutorial on apex….
 
 
exec dbms_xdb.sethttpport('8081');
commit; 
 
 

Duplicate row delete

DELETE FROM
   pr_taxable_amount_final_bk A
WHERE
  a.rowid >
   ANY (
     SELECT
        B.rowid
     FROM
        pr_taxable_amount_final_bk B
     WHERE
        A.salary_date = B.salary_date
     AND
       A.uid_no = B.uid_no)