Category Oracle İntroduction

ORA-15025: could not open disk “/dev/rdsk/emcpower2a” ORA-27041: unable to open file SVR4 Error: 13: Permission denied Additional information: 3


Issue  ======  Getting frequent errors as below Mon Jun 20 18:58:09 2016  Errors in file /u01/app/oracle/diag/rdbms/ANARTEST/ANARTEST1/trace/ANARTEST1_ora_16361.trc:  ORA-15025: could not open disk “/dev/rdsk/emcpower2a”  ORA-27041: unable to open file  SVR4 Error: 13: Permission denied  Additional information: 3  WARNING: failed to read mirror side 1 of virtual extent 23 logical extent 0 of file 259 in group [1.443862875] […]

Oracle / Grid permission and group owner will not work ORA-12547: TNS:lost contact (RAC environment)


root@anaruatdb1:/u02/app/11.2.0/grid > su – grid Password: Oracle Corporation      SunOS 5.11      11.3    September 2015 -bash-4.1$ bash bash-4.1$ . .profile_asm bash-4.1$ srvctl stop database -d ANARTEST -o immediate root@anaruatdb1:~# su – oracle Oracle Corporation      SunOS 5.11      11.3    September 2015 You have mail. bash-4.1$ . .profile_ANARTEST bash-4.1$ cd $ORACLE_HOME/bin bash-4.1$ ls -ltr oracle -rwsr-s–x   1 oracle   asmadmin 258286384 […]

Drop Database Manually


1. Login to sqlplus as sysdba and execute below script : oradba@ANARDB:~$ export ORACLE_SID=ANARDB oradba@ANARDB:~$ sqlplus SQL> select name from v$database; NAME ——— ANARDB 2. Open the set server output on to get the result from below query. SQL> set serveroutput on; 3. Execute the query to get the information of datafiles, control files and […]

SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.


PROBLEM : Connecting with sqlplus you get: bash-3.2$ sqlplus / as sysdba; SQL*Plus: Release 11.2.0.4.0 Production on Thu Jul 21 15:42:49 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> conn […]

Solaris 11 javac: command not found


root@bakuabsutdb:~# cd /tmp/ root@bakuabsutdb:/tmp# ls Baku Baku.solaris hmptemp hsperfdata_root root@bakuabsutdb:/tmp# root@bakuabsutdb:/tmp# root@bakuabsutdb:/tmp# root@bakuabsutdb:/tmp# root@bakuabsutdb:/tmp# root@bakuabsutdb:/tmp# ls Baku Baku.solaris hmptemp hsperfdata_root Java_Timezone root@bakuabsutdb:/tmp# root@bakuabsutdb:/tmp# root@bakuabsutdb:/tmp# cd Java_Timezone/ root@bakuabsutdb:/tmp/Java_Timezone# root@bakuabsutdb:/tmp/Java_Timezone# ls azerbaycan.zip once sonra TimeZoneTest.class tzdata2016c.tar.gz tzupdater.jar verify.bat deneme1 once_anar1 sonra_anar TimeZoneTest.java tzdata2016c.tar.gz.sha512 tzupdater.jar_backup verify.sh java once_yeni sonra_anar1 tzdata2016b.tar.gz tzupdater-2_0_3-2015b.zip update.bat New_Java_Timezone once_yeni2 sonra_yeni tzdata2016b.tar.gz.sha512 tzupdater-2.0.3-2015b update.sh […]

Upgrade Exadata ibswitches


root@anarexadatatest02:~# /u01/app/11.2.0.3/grid/bin/crsctl stat res -t ——————————————————————————– NAME TARGET STATE SERVER STATE_DETAILS ——————————————————————————– Local Resources ——————————————————————————– ora.DATAC1.dg ONLINE ONLINE anarexadatatest01 ONLINE ONLINE anarexadatatest02 ora.DBFS_DG.dg ONLINE ONLINE anarexadatatest01 ONLINE ONLINE anarexadatatest02 ora.LISTENER.lsnr ONLINE ONLINE anarexadatatest01 ONLINE ONLINE anarexadatatest02 ora.RECOC1.dg ONLINE ONLINE anarexadatatest01 ONLINE ONLINE anarexadatatest02 ora.asm ONLINE ONLINE anarexadatatest01 Started ONLINE ONLINE anarexadatatest02 Started ora.gsd OFFLINE OFFLINE […]

ORA-30372: fine grain access policy conflicts with materialized view ISSUE :


Receiving the following error when trying to create the materialize view oracle@bakuexa1dbadm01:~$ echo $ORACLE_SID MISUAT1 oracle@bakuexa1dbadm01:~$ sqlplus “/ as sysdba”; SQL*Plus: Release 11.2.0.3.0 Production on Mon Jun 6 09:55:05 2016 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production With the Partitioning, Real Application […]

Putting a RAC database in ARCHIVELOG


bash-4.1$ su – oracle Password: Oracle Corporation SunOS 5.11 11.3 September 2015 -bash-4.1$ -bash-4.1$ -bash-4.1$ -bash-4.1$ . .profile_ANARTEST bash-4.1$ bash-4.1$ bash-4.1$ sqlplus “/ as sysdba”; SQL*Plus: Release 11.2.0.4.0 Production on Tue May 31 11:46:12 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – 64bit Production […]

ORA-02085: database link connects to


oracle@anarexadatatest01:/u01/app/oracle/product/11.2.0.3/dbhome_1/network/admin$ sqlplus “/ as sysdba”; SQL*Plus: Release 11.2.0.3.0 Production on Thu May 12 16:26:23 2016 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options SQL> select name […]

Two days in Istanbul TROUG (The Turkish Oracle User Group )


TROUG / The Turkish Oracle User Group did its annual conference in the rooms of the Istanbul Technical University with local and international speakers. You can see ajanda from here I delivered my presentation “DataSecurity and Database Vault” Many thanks to the organizers  inviting us speakers to dinner. Some frames of the speakers: Thanks again […]

Process Familiarization Exadata 1/8


In this practice, I will examine the Exadata cell software processes. Tasks 1.Establish a terminal connection to qr01cel01 as the celladmin user. 2.Restart Server (RS) is used to start up and shut down the Cell Server (CELLSRV) and Management Server (MS). It also onitors these services to check whether they need to be restarted. Locate […]

ORA-39181: Only partial table data may be exported due to fine grain access control


ORA-39181: Only partial table data may be exported due to fine grain access control . . exported “APEX_030200″.”WWV_FLOW_CLICKTHRU_LOG_NUMBER$” 4.914 KB 1 rows . . exported “APEX_030200″.”WWV_FLOW_COMPANIES” 5.625 KB 3 rows . . exported “KOCAZER”.”CPM_PACKAGE_DEPOSIT_RATES” 5.734 KB 4 rows ORA-39181: Only partial table data may be exported due to fine grain access control on “KOCAZER”.”USERS” the […]

ORA-16025: parameter LOG_ARCHIVE_DEST contains repeated or conflicting attributes


alter system set log_archive_dest_2=’service=”(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db5.anar.az)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=db1.anar.az)(SERVER=DEDICATED)))”‘,’LGWR ASYNC NOAFFIRM delay=0 optional compression=disable max_failure=0 max_connections=1 reopen=300 db_unique_name=”db1″ net_timeout=15, valid_for=(all_logfiles,primary_role)’ scope=both; ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting attributes Solution: Remove “net_timeout” alter system set log_archive_dest_2=’service=”(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db5.anar.az)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=db1.anar.az)(SERVER=DEDICATED)))”‘,’LGWR ASYNC NOAFFIRM delay=0 optional compression=disable max_failure=0 max_connections=1 reopen=300 db_unique_name=”db1″, valid_for=(all_logfiles,primary_role)’ […]

Creating a Flashback Data Archive


Create a new tablespace or use existing tablespace – tablespace needs to be ASSM Specify the FBDA as the default (optional) Assign a quota for the FBDA (optional) Assign a retention period for the FBDA Retention period integer denoting days,months or years Enable flashback archive for a specific table via the CREATE TABLE or ALTER […]

Exadata default passwords


Database Server root/welcome1 oracle/welcome1 grid/welcome1 grub/sos1Exadata Database server ILOMs root/welcome1 Exadata Storage Cell Server root/welcome1 celladmin/welcome1 cellmonitor/welcome1 Exadata Storage Cell Server ILOMs root/welcome1 InfiniBand switches root/welcome1 nm2user/changeme InfiniBand ILOMs ilom-admin/ilom-admin ilom-operator/ilom-operator Ethernet switches admin/welcome1 Power distribution units (PDUs) admin/welcome1 root/welcome1 Keyboard, video, mouse (KVM) if available admin/welcome1

How can update Java tzdate2016c


bash-3.2$ cd /data/ bash-3.2$ ls Baku.solaris Java_Timezone arch anardb.ctl anardb.yed cd control datafile initANARDB.ora lost+found orapwANARDB1 patch stnd.ctl trace bash-3.2$ bash-3.2$ ls -la total 17902902 drwxr-xr-x 10 oracle oinstall 512 Mar 24 19:14 . dr-xr-xr-x 35 root bin 1024 Jul 8 2015 .. -rw-r–r– 1 root root 512 Mar 21 17:19 Baku.solaris drwxr-xr-x 4 root […]

Exadata ILOM – How to Disable Daylight Savings Time (DST) (


Oracle(R) Integrated Lights Out Manager Version 3.1.2.32.b r86441 Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. -> start /SP/console Are you sure you want to start /SP/console (y/n)? y Serial console started. To stop, type ESC ( [root@bakuexa1celadm01 ~]# [root@bakuexa1celadm01 ~]# uname -a Linux bakuexa1celadm01.kfsaz.local 2.6.39-400.128.17.el5uek #1 SMP Tue May 27 13:20:24 PDT […]

User Creation and Remove commands in solaris 10


Creating User Accounts To create a user account: # useradd -u 100 -g other -d /export/home/newuser1 -m -s /bin/ksh -c “Regular User Account” newuser1 # passwd newuser1 # /usr/sadm/bin/smuser add — -n newuser2 -u 500 -g other -d /export/home/newuser2 -c “Regular User Account 2” -s /bin/ksh -x autohome=N # passwd newuser2 Modifying User Accounts To […]

Immediate Kill Session#: 1, Serial#: 3 Immediate Kill Session: sess: 6fa39d608 OS pid: 6419


I am pretty sure that many of us come across of situations when a killed session by ‘alter system kill session’ command did put the session in ‘KILLED’ status and never released the session for a long time on the database. It could be due to the fact that the session would be rolling back […]

How to grant “SELECT” privilege to v$session .


SQL> GRANT SELECT ON v$session TO scott; grant select on v$session to test * ERROR at line 1: ORA-02030: can only select from fixed tables/views SQL> SELECT owner, object_type FROM dba_objects WHERE object_name = ‘V$SESSION’; OWNER OBJECT_TYPE ———————— ——————- PUBLIC SYNONYM SQL> select table_owner, table_name FROM dba_synonyms where synonym_name = ‘V$SESSION’; TABLE_OWNER TABLE_NAME ————– —————————— […]