Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • move_arch_files.ksh Linux/Unix
  • Building Our Own Namespaces with “Create Context” Oracle
  • xargs use Linux/Unix
  • Implementing Listener Security Oracle
  • dbinv.sql Oracle
  • find_longsql.sql Oracle
  • V$ROLLSTAT status is Full Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Rman Notes -1 Oracle
  • find_pk.sql /* Find Primary Key */ Oracle

Author: Admin

check_copy_progress.sh

Posted on 04-Jun-2009 By Admin No Comments on check_copy_progress.sh

#!/bin/ksh LOGFILE=/export/home/oracle/paresh/mylog.log NOTIFY_LIST=me@pvmehta.com while true do echo “Reading Time : `date` n” >> ${LOGFILE} echo “Following Files are currently copying” >>${LOGFILE} ls -rlt /db*/oradata/800JPOE/*.dbf | tail -2 >>${LOGFILE} echo “Out of 116 files, `ls -rlt /db*/oradata/800JPOE/*.dbf | wc -l` files copied so far” >> ${LOGFILE} echo “df -k /800JPOEARCH” >> ${LOGFILE} df -k /800JPOEARCH >>…

Read More “check_copy_progress.sh” »

Linux/Unix, shell

find_string_in_database.sql

Posted on 02-Jun-2009 By Admin No Comments on find_string_in_database.sql

set lines 120 pages 2000 accept pvm prompt “Enter The String You Want to Search -> ” select distinct owner, name, type from dba_source where instr(upper(text), upper(‘&pvm’)) != 0 ; set serveroutput on DECLARE CURSOR cur_triggers IS SELECT owner, trigger_name, table_name, trigger_body FROM dba_triggers; v_position INTEGER; BEGIN DBMS_OUTPUT.ENABLE(NULL); DBMS_OUTPUT.PUT_LINE(‘OWNER TABLE NAME TRIGGER NAME ‘); DBMS_OUTPUT.PUT_LINE(‘===================================================================================================’)…

Read More “find_string_in_database.sql” »

Oracle, SQL scripts

How to Make Trace Files Created by Oracle Readable by All Users ?

Posted on 27-May-2009 By Admin No Comments on How to Make Trace Files Created by Oracle Readable by All Users ?

Problem Description: ~~~~~~~~~~~~~~~~~~~~ How do you make all trace files that Oracle creates readable to owner, group, and world or public? Any “*.trc” files created by Oracle have permissions of 640, with owner of Oracle and group DBA. For example: -rw-r—– oracle dba Setting umask in the users login script (.cshrc or .profile) does not…

Read More “How to Make Trace Files Created by Oracle Readable by All Users ?” »

Oracle, SQL scripts

How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema)

Posted on 27-May-2009 By Admin No Comments on How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema)

1. Set in INIT.ORA the parameter resource_limit = true and restart Database. Since Oracle 9iR2 (9.2.0.1) you can perform this without restarting Database by issuing as SYS: alter system set resource_limit=true; 2. Connect to Database as SYSTEM or SYS and create the following Profile: create profile single_user limit sessions_per_user 1; The other parameters should be…

Read More “How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema)” »

Oracle, SQL scripts

Default User Profile

Posted on 27-May-2009 By Admin No Comments on Default User Profile

Problem Description ——————- The DBA needs to know which values are assigned to limits set to DEFAULT for a given profile. Querying DBA_PROFILES does not display the actual values but rather lists DEFAULT for those LIMITs. Solution Description ——————– From the SQL*Plus prompt, type: SQL> select * from dba_profiles where profile = ‘DEFAULT’; PROFILE RESOURCE_NAME…

Read More “Default User Profile” »

Oracle, SQL scripts

Privilege to describe the table.

Posted on 27-May-2009 By Admin No Comments on Privilege to describe the table.

The REFERENCES object privilege allows a user to describe a table for which he has been granted the privilege on.

Oracle, SQL scripts

database trigger failing

Posted on 27-May-2009 By Admin No Comments on database trigger failing

Normal triggering events doesn’t succeed when corresponding triggers fails. But there is EXCEPTION for STARTUP events: STARTUP events succeed even if the trigger fails. There are also exceptions for SHUTDOWN events and for LOGON events if you login as SYSTEM

Oracle, SQL scripts

How can I tell if ASO is installed ?

Posted on 26-May-2009 By Admin No Comments on How can I tell if ASO is installed ?

Advanced Security Options. On a UNIX platform run the ‘adapters’ command at the shell. If you have ASO installed you will see something like, Installed Oracle Advanced Security option/Security products are: RC4 40-bit encryption algorithm RC4 56-bit encryption algorithm DES40 40-bit encryption algorithm DES 56-bit encryption algorithm MD5 crypto-checksumming algorithm On Windows you will need…

Read More “How can I tell if ASO is installed ?” »

Oracle, SQL scripts

All About oracle password and security from metalink

Posted on 26-May-2009 By Admin No Comments on All About oracle password and security from metalink

Help In this Document Purpose Scope and Application All About Security: User, Privilege, Role, SYSDBA, O/S Authentication, Audit, Encryption, OLS, Database Vault, Audit Vault 1) Alerts 2) System Privileges 3) Object Privileges 4) Users and Roles 5) User and Tablespace Quotas 6) Profiles and Resource Limits 7) Password Management 8) Connect Internal and Password Files…

Read More “All About oracle password and security from metalink” »

Oracle, SQL scripts

How To Transfer Passwords Between Databases (ref note: 199582.1)

Posted on 22-May-2009 By Admin No Comments on How To Transfer Passwords Between Databases (ref note: 199582.1)

fix: 1) Log on as SYSDBA 2) Create database link between source and target database 3) Create procedure which selects usernames,passwords from DBA_USERS in source database and inserts usernames,passwords into target database Sample SQL-statements source database: SQL> select password from dba_users where username=’SCOTT’; USERNAME PASSWORD —————————— —————— SCOTT F894844C34402B67 target database: Sqlplus> Create user SCOTT…

Read More “How To Transfer Passwords Between Databases (ref note: 199582.1)” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 13 14 15 … 56 Next

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Load SPM baseline from AWR Oracle
  • good note for shared pool tunnig Oracle
  • Sample WW22 listener.ora Oracle
  • My Test Case On 21-OCT-2005 Oracle
  • nfs mount command Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • replace alphabets using sed Linux/Unix
  • online_ts_bkup.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme