Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Oracle applications 11i dba faq
1. 1. What are the scripts do you use while Apps Cloning?
adpreclone.pl prepares the source system to be cloned by
collecting information about the database and creating generic
templates of files containing source specific hardcoded
values.
Its location is $COMMON_TOP/ admin/scripts/contextname/
adcfgclone.pl creates the new context file used to configure the
target system.
2. What is Patch?
Patch is a program which fixes the bug.
3. Apps11i Post-Installation steps?
1) Shutdown all Oracle Application Processes
2) Apply Inter-Operability Patch(3830807)
3) Apply Discoverer Patch(3170128)
4) Relink all Oracle Appications executables
5) Restart Oracle Application Processes
4. Apps11i Post Cloning steps?
1)Update the profile options
2)Update the printer settings
3)Update workflow configuration settings
4)Verify APPLCSF variable
5)Update session_cookie_ domain in icx_parameter table
5. Types of Patches?
One-off patch: This is the simplest type of patch. It
is created to resolve a specific bug.
Minipack patch: This is a collection of one-off
patches and enhancements related to a particular
module. Alphabetic characters denote the Minipack
version for the module; for example, the product
code for the Application DBA utilities is AD, and
version Minipack I of this product would be called
AD.I
2. Family Pack patch: This is a collection of Minipack
patches for a particular family group of application
modules. Alphabetic characters denote the Family
Pack version; for example, the J version of the
Human Resources Suite Product Family would be
HR_PF.J
Maintenance Pack patch: This is a collection of
Family Packs that serves as a point-level release
upgrade; Oracle Applications Release 11.5.10 is an
example of a Maintenance Pack.
6. Contents of a Patch?
Readme files
Driver files
Metadata files
Replacement files
7. Modes of Patching?
Test mode (apply=n), With the Test mode, we can see
the effects applying the patch will have on your system before
applying the patch.
Pre-install mode (preinstall= y), Pre-install mode of
Autopatch is used when the version of Oracle Applications
AutoPatch works with is different than the version of Oracle
Applications in the database. We use this mode during upgrade
process.
Non-interactive mode (adpatch defaultsfile= $APPL_TOP/
admin/<SID>/log)
8. What are the drivers present in patching?
C driver copies the files and links executables
D driver runs the SQL scripts and programs that updates the
database
G driver generates the forms, reports and message files
U driver is a consolidated driver containing all copy,
database, and generate actions
9. Options of adpatch?
3. Novalidate Prevents adpatch from validating all schema
connections
Noprereq Prevents adpatch from checking the existence of
prerequisite patches
Nocompiledb Prevents adpatch from compiling database
objects
Nocompilejsp Prevents adpatch from compiling JSP objects
Noautoconfig Prevents adpatch from running autoconfig after
the patch has been completed
NogenerateportionPrevents adpatch from compiling forms, menus,
and plls
Hidepw Prevents passwords from being displayed in log
files
Hotpatch Allows adpatch to be run when the instance is
not in maintenance mode
10.Minipack naming convention?
11i.<prod>.A, 11i.<prod>.B For example: 11i.AD.G,
11i.AD.H
11.Maintenance pack naming convention?
11.5.1, 11.5.2, 11.5.3
12.Family pack naming convention?
11i.<prod family name>.<letter> For example:
11i.HR_PF.C
13. Difference between adpatch and Opatch?
adpatch is utility to apply Oracle Application Patches
opatch is utility to apply Database Patches
14.What is the prerequisite to apply Opatch?
Database should be down
15.What do you do if patch fails?
Review log file(s) to determine the cause of the error
Fix the cause of the error
Restart adpatch
Answer 'Yes' when adpatch asks if you want to continue
the previous session
4. Adpatch will skip already completed jobs, and pick up
from where it left off.
16.How to apply a pre-requisite patch when adpatch is running?
Shut down the workers using adctrl
Backup FND_INSTALL_ PROCESSES,
AD_DEFERRED_ JOBS, restart files(.rf9)
Then, drop the above tables, restart files and apply the
pre-requisite patch.
Restore the two tables and restart files from backup &
run the adpatch.
17.If you know that the patch has been applied previously but
patch is asking you to apply the existing patch as a pre-
requisite?
adpatch options=noprereq
18.While applying Apps patch using adpatch, if you want to
hide the apps password, how will that be possible ?
Use adpatch flags=hidepw while applying patches in apps
to hide apps or system password being displayed on Users
Screen.
19.How do you reduce patch timings?
Merging patches via admrgpch
Use various adpatch options like nocompiledb or
nocompilejsp
Use defaults file
20. How you put Applications 11i in Maintenance mode ?
Use adadmin to change Maintenance mode in Oracle Apps.
With AD.I you need to enable maintenance mode in order to
apply apps patch via adpatch utility. If you don't want
to put apps in maintenance mode you can use adpatch
options=hotpatch feature.
21.How do you know that a patch has been applied?
Navigate to sitemap > patches patchhistory
(or)
Query AD_BUGS or AD_APPLIED_PATCHES
5. 22.How do you find out which drivers have been applied?
Query the ad_patch_drivers;
23.How do you find out what patches have been applied on
database?
$ opatch lsinventory
24.How to rollback the opatch?
opatch rollback
25.How to apply the patch?
opatch apply
26.How to go for the help on Opatch?
opatch help
27.Location of Patch History files?
$APPL_TOP/admin/
SID/javaupdates<timestamp>.txt(for java related files)
$APPL_TOP/admin/ SID/adpsv<timestamp>.txt(non-
java related files )
28.Where do you find adpatch log files ?
Patch log files will be in directory $APPL_TOP/admin/
SID/log
like adpatchXXX.log ( file name you mentioned while
patching ), adworkXXX.log for worker log files
29.Location of Adpatch default logfile location?
$APPL_TOP/install/ log
30.Location of APPS password?
$IAS_ORACLE_ HOME/Apache/ modplsql/ cfg/wdbsvr.
app
(or)
$8.0.6 ORACLE_HOME/ report60/ server/CGIcmd. dat
31.How do you know whether ur system is autoconfing enabled
or not?
Run adcfginfo.sh contextfile= $APPL_TOP/
admin/contextnam e.xml
32.How do you determine whether your system is Rapid Clone
enabled?
First, verify that your system is AutoConfig enabled. Then,
6. Verify that the latest Rapid Clone Patch has been applied or
not
33.If I have 5 databases, is it possible to point only to 1
bdump?
Keep the same location in 'background_ dump_dest'
parameter for 5 databases in pfiles
34.How to retrieve recent files?
ls -ltr
35.How do you know the kernel version?
uname -r
36.Contents of pfile?
db_name
background_dump_ dest
user_dump_dest
core_dump_dest
control_files
undo_management
compatible
db_block_size
db_cache_size
db_domain
global_names
instance_name
max_dump_file_ size
remote_login_ passwordfile
service_names
shared_pool_ size
37.Contents of controlfile?
Database name & Identifier
Timestamp of database creation
Tablespace names
Names & locations of datafiles and redolog files
Current redolog file sequence number
Checkpoint information
Begin & end of undo segments
7. Redo log archive information
Backup information
38. Why do you set Kernel parameters?
Oracle uses UNIX resources such as shared memory, swap
space and semaphores for interprocess communication.
So we modify the Kernel parameters in /proc/sys/kernel.
To setup these parameters permanently is use /etc/sysctl.
conf file.
If your Kernel parameter settings are insufficient for
Oracle, you will experience problems during installation and/
or instance startup.
39.What is the purpose of find?
if you are in present directory, how do you find? f ind .-
name<filename>
if you are not in present directory, how do you find? find
-name<filename>
40.How to enable a new language?
Through License Manager
41.How do you take backup in LINUX?
By using tar or cp or cpio
42.What is Generic Service Management(GSM) ?
GSM is an extension of concurrent processing which
provides a powerful framework for managing processes on
multiple host machines.
43.How to find out the version of a FORM?
f60gen------ --------- ---for FORM version
44.How do you find out if Form Server is running or not?
ps -ef |grep f60webmx
45.What is the Forms Server executable name?
f60srvm
46.What if the Form Server is slow?
Bounce the server
47. How to confirm if Report Server is Up & Running ?
ps -ef | grep rwmts60
8. 48.What are Materialized views?
Materialized views are schema objects that can be used to
summarize and distribute data.
49.What is deadlock?
When two processes waiting to update the rows of a table
which are locked by an other process, then deadlock arises.
50.How do you create the user?
Navigate to Security-->user-->define
51. How do you delete an existing user in the applications?
Applications users cannot be deleted since records belonging
to users are kept for security and monitoring purposes. The
only thing to do is to invalidate the user by
assigning an end date to the effective period for the user.
Navigating path: Security -> User -> Define
52.How do you delete a responsibility from Oracle
Applications?
Responsibilities cannot be deleted since those records are
kept for security and monitoring purposes. However,
responsibilities can be disabled by assigning an end date to
the effective period
53. How do you tell what products are installed within
Applications?
This information can be accessed within Applications from
the Alert Manager Responsibility.
Navigation Path: System-->
Installations
54.What is Concurrent Manager?
Concurrent Manager is a program or process manager on
application db server, that coordinates the concurrent
processes generated by user’s concurrent requests.
55.What is Standard manager?
Standard manager is the default manager which accepts all
kinds of requests. It has no predefined specialization rules
and is active all the time.
9. 56.What is Transaction manager?
A Transaction manager is started on concurrent processing
server and periodically reads the pipe (concatenation of
Application tier and Database tier) for incoming
transactions. It occurs only in 11i RAC configuration.
57.What is ICM?
ICM is the manager which controls other managers. If it
finds other managers down , it checks & try to restart them.
58.What is Confict Resolution Manager?
CRM resolves conflicts such as request incompatabilities.
59.What is incompatability with Concurrent request?
When a concurrent request is being processed and another
concurrent manager is trying to process same type of request,
there is an incompatability with concurrent request and is
resolved by Conflict Resolution Manager.
60.How to start/stop the Concurrent Manager?
adcmctl.sh start/stop
(or)
$FND_TOP/bin/ startmgr
61.How do you define a Concurrent Manager?
Navigate to Manager --> Define
62.How do you check the current status of manager processes at
OS level?
$FND_TOP/sql/ afcmstat. sql
63.How do you know whether Concurrent Manager is running
or not?
ps -ef |grep FNDLIBR
64.Where do you see the requests?
Query the FND_CONCURRENT_ REQUESTS
65.How do you know whether Listener is up or not?
ps -ef |grep FNDFS
66.If Concurrent manager is not getting up, what might be the
problem?
Apps Listener is not up
10. 67.How do you determine whether the standard managers are
up?
ps -ef |grep FNDLIBR (or)$FND_TOP/ sql/afimchk. sql
68.What happens, if Conflict Resolution Manager is down?
ICM will take over the jobs of CRM
69.If ICM is down, what happens?
All the other managers will keep working. ICM takes care
of the queue control requests, which means starting up and
shutting down other concurrent managers.
70.What happens if user kills ICM?
Applications will be down
71.What is PMON
cycle?
This is the number of sleep cycles that the ICM waits
between the time it checks for concurrent managers failures,
which defaults to 20. You should change the PMON cycle to
a number lower than 20 if your concurrent managers are
having problems with abnormal terminations.
72.What is Queue Size?
The queue
size is the number of PMON cycles that the ICM waits
between checking= for disabled or new concurrent managers.
The default for queue size of one PMON cycle should be
used.
73.What is Sleep Time?
The sleep time parameter indicates
the seconds that the ICM should wait between checking for
requests that are waiting to run. The default sleep time is 60,
but you can lower this number if you see you have a lot of
request waiting (Pending/Normal) . However, reducing this
number to a very low value many cause excessive cpu
utilization.
74. Location of AutoConfig template files and its use?
AutoConfig uses template files to determine the basic
11. settings that are needed. Its location is prod_top/admin/
template
75.What is Auto Config? How does AutoConfig know which
value from the XML file needs to be put in which file?
Auto Config is a configuration tool that supports automated
configuration of an Oracle Application file system. All of the
information required for configuring an Applications file
system is collected into a central repository, called the
Applications Context; there is one Applications Context for
each application tier, and one for the database tier. When you
run AutoConfig, it reads the XML files and creates all the
AutoConfig managed configuration files. For each
configuration file maintained by AutoConfig, there exists a
template file which determines which values to pick from the
XML file.
76.How do you change the port values?
Port values can be changed in the context file with the help of
ContextEditor and running AutoConfig.
Navigate to Sitemap > Context Editor
77.What is Snapshot?
Snapshot gives a picture of selected Application related files
in a given APPL_TOP
78.Location of Snapshot Information?
$APPL_TOP/admin/ SID/out/snapdnld .txt
AD_SNAPSHOT, AD_SNAPSHOT_ FILES,
AD_SNAPSHOT_ BUGFIXES
79.What is the runaway process in CPU?
The process to which the memory assigned is not released is
known as runaway process.
80.What is dbclone?
Creating same structure of existing database.
81.How do you know that you are in DbTier or AppsTier?
Through XML file, If DbTier=yes, you are in DbTier
82.How do you know the database has invalid objects?
Select * from dba_objects where status like 'invalid';
12. 83.How do you compile invalid objects?
By running 'Validate APPS Schema' task in adadmin
(or)
Run utlrp.sql. Its location is $ORACLE_HOME/
rdbms/admin
84.Location of Apache logs?
$IAS_ORACLE_ HOME/Apache/ Apache/log
85. Why do you run catalog.sql, catproc.sql, pupbld.sql?
catalog.sql creates views and synonyms on data dictionary
Its location is $ORACLE_HOME/ rdbms/admin
catproc.sql creates the PL/SQL procedures and packages
Its location is $ORACLE_HOME/ rdbms/admin
pupbld.sql creates the product and user profile tables
Its location is $ORACLE_HOME/ sqlplus/admin
86.How do you drop the user including contents?
Drop user XXX cascade;
87.What is use InterOperability Patch?
We apply this patch for the compatability between OS and
Oracle
88. How do you know the database growth?
Query dba_free_space
dba_segments
dba_extents
89.In which mode do you up the database after creating control
file?
startup mount
90.What happens when you give ALTER tablespace begin
backup?
Datafile headers will be freezed.
Undo information will be written into redo log files.
91.What if the database got crashed after giving ALTER
tablespace xxx begin backup?
13. Startup the database in mount mode and give the command
ALTER tablespace xxx end backup
92.When you kill a particular process id, it is again restarted.
How to solve it?
Kill the parent process by this command
pkill pid
93.How do you findout the installation is single-node or multi-
node?
adconfig.txt- --------- --------- ->$APPL_TOP/admin
(or)
Query FND_NODES
94.How to find Apache (web server) is running or not?
ps -ef | grep httpd.conf
95. If Apache is getting problems, which files do you look for to
trouble shoot?
$IAS_ORACLE_ HOME/Apache/
Apache/conf/httpd.conf
$ IAS_ORACLE_HOME/ Apache/Jserv/
etc/jserv.properties
96.Location of HTML Cache in Oracle Applications?
$OA_HTML/_pages
97.Location of PL/SQL Cache in Oracle Applications?
$IAS_ORACLE_ HOME/Apache/ modplsql/ cache
98.How do you restart the Discoverer in Oracle Applications
11i?
addisctl.sh start
(or)
$ORACLE_HOME/ discwb4/util/ startall. sh
99.Location of audit traces?
$ORACLE_HOME/ rdbms/audit
100.What is the use of adutconf.sql?
adutconf.sql reports standard information about the
installed configuration of Oracle Applications
101.How do you know the Jinitiator version?
Under $COMMON_TOP/ html/bin/ appsweb_SID_
14. HOSTNAME. Cfg, search for entry like
jinit_ver_name
(or)
Under $FND-TOP/resource/ appsweb_SID_
HOSTNAME. cfg, search for entry like
jinit_ver_name
102.How to find opatch Version?
$ORACLE_HOME/ OPatch/opatch version
103.How to find out database version?
select * from v$version;
104.How do you know the OUI version?
$IAS_ORACLE_ HOME/appsoui/ oui/oraparam. ini
(or)
grep -i version oraparam.ini
105.How do you the Apache version?
Type sqlplus after connecting to $IAS_ORACLE_ HOME
106.How do you find out the status and process id of the
adworkers? ps –ef |grep adworker
107.How do you connect to RMAN?
rman target system/manager@ SID-----To connect
remotely
rman target / ------------ --------- -------To connect
globally
108.When you run the convert character set, adadmin creates 3
files in the APPL_TOP/admin/ SID/out. What are they?
admanifest_excp. lst
admanifest.lst
admanifest_lossy. lst
109.Location of Non-OAM context editor wizard?
COMMON_TOP/util/ editcontext- --------- --------- -----
Application Tier
RDBMS_ORACLE_ HOME/appsutil/ editcontext-
----Database Tier
110.How to lock/unlock the scott/tiger account?
alter user scott account lock/unlock
15. 111.Diff. between sys and system?
Sys owns data dictionary views
System owns the objects owned by oracle utilities
112.Diff. between sys and sysoper?
Sysoper can take backup of controlfile
Sys can take full backup of database
113.How to create a user through command prompt?
useradd -g groupname -d directory -p password username
114.What is softlink or hardlink?
A softlink is a file that points to another
file. Syntax: ln -s filename
linkname
A hardlink is a pathname that references an
inode Syntax: ln filename linkname
115.How do you maintain multiple databases with single
instance?
By sourcing the environment variables
116.What happens when you give commit statement?
Server process records the SCN & commit record in the redo
log buffer
LGWR writes the redo log buffer entries & the SCN to redo
log files
Oracle notifies the user that the commit is completed
Server process records that the transaction is completed &
that the resource lock can be released
117.Multiplexing the controlfile using SPfile
Alter system set control_files= location
Shutdown the database
Create additional controlfiles
Startup the database
118.Multiplexing the controlfile using Pfile
Shutdown the database
Copy the existing controlfiles to a newname and
location
16. Add the new controlfile name to pfile
Startup the database
119.Multiplexing the Redo log files?
If the log file is current, perform logswitch by using
ALTER SYSTEM SWITCH LOGFILE
Copy the redolog file to the new location
Use ALTER DATABASE RENAME FILE xxx TO
xxx to make the change in control files.
120.What are the storage clauses do you specify?
local, uniform, autoextend, dictionary
121.How to find out the file version?
adident Header <filename>
122.How do you mount the directories through NFS?
mount -t nfs hostname:source destination
123.How to recover clone data?
Recover database until cancel
124.What is the utility to upgrade from one version to another
version?
dbua
125.Contents of APPL_TOP?
environment files and products
126.What does APPLCSF mean?
$COMMON_TOP/ admin
127.How to change the APPLTMP, APPLPTMP?
utl_file_dir should be edited in pfile
128.How do you know the product versions, patchset levels?
$AD_TOP/sql/ adutconf. lst
(or)
Query PRODUCT_COMPONENT_ VERSION table.
129.Location of JAR files?
$PROD_TOP/java/ jar------ --------- ---------
--------- ----APPL_ TOP
$JAVA_TOP/oracle/ apps/<prod>/jar--------
--------- -JAVA_TOP
17. 130.Location of US directory?
$APPL_TOP/au/ 11.5.0/reports/ us
131.What happens when you give open resetlogs?
log sequence no. will be reset
132.How do you know that the particular datafile belongs to
particular tablespace?
Query v$tablespace, v$datafile
133.If .dbc file is corrupted, what happens? and What should
you do?
autoconfig should be run
134.What are AutoPatch Restart files?
Restart files store information about completed processing in
the event of a patch or system failure. They allow AutoPatch,
AutoUpgrade, and AD Administration to continue processing
at the point where they stopped. Its location is $APPL_TOP/
admin/<SID>/restart
135.How to check whether all the processes are running or
not?
ps -ef |grep smon
136.How do you know which user has which privileges?
$DBA_SYS_PRIVS
137.How do you create Applications Context file?
Run $AD_TOP/bin/ adbldxml. sh, after sourcing APPL_TOP &
ORACLE_HOME environment files.
Then, the following values will be prompted for
ORACLE_SID used to connect to database
Full path to the Rapid Install Configuration file
Full path to the JDK 1.3.1 installation
138.What is OraInventory?
The OraInventory stores information about all oracle
software products installed in all ORACLE_HOMES and
other non-oracle products such as the Java Runtime
18. Environment( JRE). The location of the OraInventory is /etc/
oraInst. loc which points the location of Global Inventory.
139.What is XML oraInventory?
Starting with OUI 2.x and 11.5.8, the informatio in the
inventory is stored in Extensible Markup Language(XML)
format. The XML format allows for easier diagnosis of
problems and faster loading of
data.
The inventory is XML if the following
file exists $ORACLE_HOME/ inventory/ ContextXML/
comps.xml Unlike the binary
OraInventory, the XML inventory is divided into 2 distinct
components.
Global Inventory or Central Inventory
Local Inventory or Home Inventory
140.What is Global Inventory?
The Global Inventory is the part of the XML inventory that
contains the high level list of all Oracle products installed on
a machine. The Global Inventory records the physical
location of Oracle products installed on the machine, such as
ORACLE_HOME( RDBMS and IAS) or JRE. It does not
have any information about the detail of patches applied to
each ORACLE_HOMEs. The Global Inventory gets updated
everytime you install or de-install an ORACLE_HOME.
Note: If you need to delete and ORACLE_HOME, you
should always do it through the OUI de-installer in order to
keep the Global Inventory synchronized.
141.What is Local Inventory?
There is one Local Inventory per
ORACLE_HOME. It is physically located inside the
ORACLE_HOME at $ORACLE_HOME/ inventory and
contains the detail of the patch level for that
19. ORACLE_HOME. The Local Inventory gets updated
whenever a patch is applied to the ORACLE_HOME, using
OUI.
142.What does OUISetup.pl do?
OUISetup.pl is included with the OUI
patch, listed as a pre-requisite to Rapid Clone. It should be
run as part of the OUI Patch installation and performs the
following tasks:
Register the OUI program
in the Global Inventory
Register the JRE in the Global Inventory
Ensures that the ORACLE_HOME in which
the patch is installed is properly registered in the Global
Inventory.
143.How do you determine if your system is autoconfig enabled
or not?
Run adcfginfo.sh contextfile= context
144.How do you determine if your system is Rapid Clone
enabled or not?
First, verify that your system is AutoConfig enabled. Then,
verify if latest Rapid Clone Patch has been applied.
145.Can you clone a multinode system to a singlenode system?
You can use Rapid Clone to merge multiple APPL_TOP and
COMMON_TOP file systems into a single APPL_TOP and
COMMON_TOP file system.
146.How does adcfgclone.pl know the target system values?
adcfgclone.pl will prompt for the values required to create
the new context file used to configure the target system.
PROMPTS:
Database SID
Domain name
Prompts specific to the DBTier
Target system database name
RDBMS ORACLE_HOME directory
20. DATA_TOP path
Prompts specific to the AppsTier
Database server node
Does the target system have more than one applications tier
server node(Y/N)?
Is the target system APPL_TOP divided into multiple mount
points(Y/N)?
APPL_TOP mountpoint
COMMON_TOP directory
8.0.6 ORACLE_HOME directory
IAS ORACLE HOME directory
Location of JDK1.3.1
Prompts common to DB and AppsTier
Port Pool Number [0-99]
147.What is Port Pool?
The Port Pool provides a way to use a set of predefined
server ports. There are 100 port pools.
Port Name Default port
numubers
Web Listener Port 8000
Database Port 1521
RPC Port 1626
Reports Port 7000
Metric Server Data Port 9100
JTF Fulfillment Server Port 9300
148.What is .dbc file? and its contents? How do applications
know the name of the dbc file?
dbc stands for database connect descriptor file used to
connect to database.
Whenever java or any other program like forms want to
connect to database, its uses dbc file. The application knows
the name of the DBC file by using profile option
"Applications Database Id"
Contents of dbc file:
GUEST_USER_PWD
21. DB_NAME
DB_HOST
DB_PORT
Location:
$FND_TOP/secure
149.How to compile JSP in Oracle Applications?
Run ojspCompile. pl script
Location: $JTF_TOP/admin/ scripts
150.What is Web Listener?
Web Listener is web server listener which is listening for
web services (HTTP) request. This listener is started by
adapcctl.sh
151.What are the development technologies?
Java, D2K, HTML
152.How do you restart the installation?
rapidwiz -restart
153.Documents to be referred for installation?
Installation guide
Update Release notes
154.How do you set the path of /etc/oraInst. loc when it is not
present and you dont have root access?
run ./rapidwiz -inventory_loc= 'location'
155.How to verify whether java is installed or not?
which java
156.How to findout the java version?
java -version
157.How to check whether the packages are available or not?
rpm -qa |grep ar/make/qa
158.Do you have to install JDK on all systems, when you are
doing multinode installation?
Yes, mandatory
159.Location of installation log files?
$ORACLE_HOME/ appsutil/ log/contextname- --------- ---
> on database
22. $APPL_TOP/admin/ contextname/ log------ ---------
--------- -->on application
160.By using FNDCPASS, whose passwords can be changed?
Oracle------ ---Database tier
System------ --Application tier
User-------- ---Oracle user
161.How do you switch the logfile?
alter system switch logfile
162.How to force the checkpoint?
By setting FAST_START_MTTR_ TARGET parameter
(or)
alter system checkpoint
163.What is the purpose of adcfginfo.sh?
It shows whether the system is autoconfig enabled or not.
Location: $AD_TOP/bin
164.What is the difference between apps schema, applsys
schema, applsyspub schema?
Apps schema contains only synonyms for other modules
Applsys schema contains all the fnd tables, administration
schema
Applsyspub is the gateway to login to the application
165.Parameters regarding the performance tuning?
audit_trail= true
timed_statistics= true
max_dump_file_ size=10240
166.Why do you use scope=spfile, memory and both?
MEMORY: Set for the current instance only. This is the
default behaviour if a PFILE was used at STARTUP
SPFILE: update the SPFILE, the parameter will take effect
with next database startup
BOTH: affect the current instance and persist to the
SPFILE. This is the default behaviour if an SPFILE was used
at STARTUP
167.Steps to apply Patchset?
Patchset includes bugfixes for 9.2.0.4 – 9.2.0.6
23. 1)Unzip the patchset in /stage directory and run the
runInstaller
2)Select the 10G OUI and again run the runInstaller
3)Select patchset
4)Startup migrate
5)Run the script catpatch.sql
168.What is Shared Server?
In Shared Server environment, the server process handles
the request of several user processes.
169.How to enable Shared Server?
Two parameters should be set in pfile.
shared_server= no. of predefined server processes
dispatchers= protocol of dispatcher and no. of
dispatchers
Then, tnsnames.ora should be modified
170.What is Cost based optimization?
Cost based optimization is used to identify the shortest way
to execute and retrieve data from an object
171.How do you change the database name?
Change SID in controlfile and parameterfile
In controlfile, set dbname=xxx, reuse=xxx
172.Difference between 8i and 9i?
In Oracle9i, DB_CACHE_SIZE or SHARED_POOL_ SIZE
can be resized when the database is up and running. It is not
possible with Oracle8i.
Time stamp facility is available in 9i whereas it is not
available in 8i
You can drop a column in oracle 9i using alter table
command where as this is not available in oracle 8i
In 9i, we call undo segments whereas rollback segments in
8i
173.What is Explain Plan?
Explain Plan parses a query and records the "plan" that
Oracle devises to execute it. By examining this plan, you can
findout if Oracle is picking the right indexes and joining
24. your tables in the most efficient manner.
@?/rdbms/admin/ utlxplan. sql script will create the
PLAN_TABLE
174.What is the use of utlrp.sql?
This script compiles the invalid PL/SQL modules. Its
locations is $ORACLE_HOME/ rdbms/admin
175.Which initialization parameters do you set to effect the
SGA size?
shared _pool_size
db_block_size
db_cache_size
log_buffer
176.Which parameters in pfile effect the database?
db_name
db_block_size
control_files
177.Tasks of Adadmin?
1. Generating Applications files
2. Maintaining the Applications database objects
3. Maintaing Applications files
178.AD Administration Prompts?
Is this the correct APPL_TOP [Yes]?
Logfile name [adadmin.log]
Email feature [No]
Batch size [1000]
Is this the correct database [Yes]?
Enter the password for 'SYSTEM' ORACLE schema:
Enter the password for APPLSYS schema
179.Ad Administration Preliminary Tasks?
Run the environment file
Verify the ORACLE_HOME is set properly
Verify the TWO_TASK identifies the correct database
Ensure that ORACLE_HOME/ bin and AD_TOP/bin are
in path
Shutdown the concurrent managers when relinking
25. Ensure sufficient temporary disk space
Note: The temporary directories APPLTMP,
APPLPTMP, REPORT60_TMP and the OS temporary
directories, /tmp, /usr/tmp must each have atlease 50MB of
free space
180.When do you run Relink Application Programs task in
AdAdmin?
Run the Relink Application Programs after
Installing a new version of the database or a
technology stack component
Installing another underlying technology component
that Oracle Applications rely on
Applying a patch to the Applications technology stack
Applying a patch to the OS
Including a new or changed third party or custom
code into Applications programs
181.What is the pre-requisite before running the 'Convert to
Multiple Reporting Currencies' task in Ad Administration?
Always run the 'Validate APPS Schema' task before
running the convert to MRC task
182.How do you know database version?
Select * from v$sys.version
183.What is Password file?
Password file is created on a server side to store valid users
and password. It is used for validating users and their
passwords.
184.Purpose of Undo segments? Undo segment is used to save
the old value when a process changes data in a database.
185.How many undo tablespaces should be there? We can
have any no. of tablespaces but only one should be active.
186.Where does redo log information store?
In memory area
187.Explain the difference between a hot backup and a cold
backup?
26. We take hot backup when database is up and running and
it must be in archivelog mode. We take cold backup while
database is shutdown and it doesnt need to be in archive log
mode.
188.What is admrgpch?
It merges multiple patches into a single, integrated patch.
189.What is adadmin?
It performs maitenance tasks on the
Oracle Applications file system and database
190.What is adpatch?
It applies patches and adds
new languages and products.
191.What is adaimgr?
It upgrades to the latest version of Oracle Applications
192.What is adctrl?
It manages parellel workers in Autoupgrade,
ADAdministration and AutoPatch
193.What is adrelink?
It relinks Oracle Applications executable programs with the
Oracle Server Product Libraries
194.What is adsplice?
It registers off-cycle products
195.How do you determine howmuch virtual memory is being
utilized?
Run the vmstat command
196.How to know which process is consuming more CPU
resources?
Run the top command
197.How do you determine the blocklevel utilisation?
Run the iostat command
198.What for do you use the 'netstat' command?
Netstat reports on the contents of network data structures
199.How do you increase the datafile size?
By using ALTER DATABASE DATAFILE xxx RESIZE n
27. 200.How do you bring datafile offline?
By using ALTER DATABASE DATAFILE xxx OFFLINE
201.Do we need to close the window after installing Jinitiator?
No need, if Internet Explorer is used
Need to be closed, if Netscape is used
202.Whats is difference between two env files in
<CONTEXT>.env and APPS<CONTEXT>.env under
$APPL_TOP ?
APPS<CONTEXT>.env is main environment file which
inturn calls other environment files like <CONTEXT>.env
under $APPL_TOP, <CONTEXT>.env under 806
ORACLE_HOME and custom<CONTEXT>.env for any
Customized environment files.
203.What are main configuration files in Web Server (Apache)?
httpd.conf, jserv.conf, wdbsvr.app
204.What are various components in Application/ Middle
Tier?
Web Server, Forms Server , Reports Server, Concurrent
Manager, Admin Server & Discoverer Server.
205.What is Maintenance Mode?
Maintenance Mode is a new mode of operation introduced
with Release 11.5.10, in which the Oracle Applications
system is made accessible only for
patching activities. This provides optimal performance for
AutoPatch sessions, and minimizes downtime needed.
Maintenance mode is only needed for AutoPatch
sessions.
206.Difference between delete and truncate?
If you delete a table, you can
rollback but if you truncate a table you cannot rollback
Delete is a DML command whereas Truncate is a DDL
command
28. 207.What does OUI do?
OUI(Oracle Universal Installer) is used to install, upgrade
or remove software components, and create database
208.Application Scripts?
adfrmctl.sh -------Form Server
adfmsctl.sh- ------Forms Metric Server
adfmcctl.sh- ------Forms Metric Client
adalnctl.sh- -------Listener
adrepctl.sh- -------Report Server
adcmctl.sh-- ------Concurrent Manager
adapcctl.sh- ------Web Server
addisctl.sh- -------Discovere r Server
adtcfctl.sh- -------TCF Socket Server
jtffmctl.sh- --------Fulfillm ent Server
209.Database Scripts?
addlnctl.sh- -------DB Listener Process
addbctl.sh-- -------DB Process
210.Difference between du and df?
du shows the used space for each and every directory and
file
df shows the used and available space with mount points
211.In which mode the recovery is done?
mount mode
212.How do you increase the tablespace size?
By adding datafile to the tablespace or by resizing the
datafile
ALTER TABLESPACE xxx ADD DATAFILE xxx
RESIZE n
ALTER DATABASE DATAFILE xxx RESIZE n
213.Where does undo memory information store?
Redo log buffer cache
214.What happens when you use alter system archive log start?
To enable the automatic archiving
29. 215.What happens when you use alter database archive log?
To keep the database in archivelog mode
216.How do you maintain security?
By creating users and assigning them roles and profiles
217.Why do you use Resetlogs, Set, Reuse?
If you reset the logs, log sequence number will be set 0
Set is for new SID
Reuse is for reusing the existing controlfiles
218.How to check the free space and used space in OS level?
df -h, du -h
219.How to check the top directories used space in OS level?
du -h --max-depth= 1
220.Which parameters effect the undo?
undo_management
undo_retention
undo_suppress_ errors
undo_tablespace
221.What is the purpose of cmclean.sql? and its location?
It will purge the concurrent manager logs and tables
222.What is JInitiator?
JInitiator provides the JVM on which Forms client Applet
will run.
223.What for do we use shared, exclusive, none in password
file?
shared is to allow the remote users
exclusive is only for particular database
If none is set, remote login is not allowed
224.What is datagroup?
Datagroup is the pairing of Oracle user and Application
user.
225.What happens when the environment is sourced?
All the product top directories and necessary executables
such as adadmin, adpatch are set into path.
30. 226.Contents of COMMON_TOP?
admin/scripts, java, html, rgf, temp/txkValidateRol
lup.html, util/jinitiator
227.Contents of ORA directory?
IAS_ORACLE_HOME and 806 ORACLE_HOME
228.What is checkpoint?
Checkpoint signals the DBWR to write the dirty buffers to
datafiles
Updates the datafile headers and controlfiles with
checkpoint information
229.What is there in httpd.conf?
This is a server configuration file which typically contains
directives that affect how the server runs, such as user and
group IDs it should use, and location of other files. Because
the server configuration file is the main file that the server
starts with, Oracle HTTP Server does not include any
directive that says where to locate it. The location is passed
on command line when the server starts.
230.What is RRA/FNDFS ?
Report Review Agent(RRA) also
referred by executable FNDFS is default text viewer in
Oracle Apps 11i for viewing output files & log files
231.Where to check log files after autoconfig is executed ?
On database tier its under $ORACLE_HOME/ appsutil/
log/contextname/ mmddhhmm/ adconfig. log On
Application tier its under $APPL_TOP/admincont
extname/log/ mmddhhmm/ adconfig. log
232.What is location of Contexts file in 11i ?
Database Context file is under
Database $ORACLE_HOME/ appsutil
Application Context file is under $APPL_TOP/admin
233.What is a responsibility?
Responsibility is a collection of
menus, request security groups and data groups. Menu is a
collection of forms
31. Request security group is a collection of programs
Data group is a group of
modules to be made accessible by the user through
Responsibility
System admin-->security-->define
Security-->user-->define
234. How do you troubleshoot self-service login problems?
Which profile options and files do you check?
Check guest user/password in DBC file, profile option guest
user/password. Check whether apache/jserv is up
Run
FND_WEB.PING, aoljtest etc
235.What could be wrong if you are unable to view concurrent
manager log and output files?
Most likely listener is down. Look at the
FND_CONCURRENT_ REQUESTS, FND_NODES table and
FNDFS_entry in tnsname.ora
236.How do you change the apps password?
Use FNDCPASS to change APPS
password and modify manually wdbsvr.app/cgiCMD. dat
237.How do I check if Multi-org is installed?
Select multi_org_flag from
fnd_product_ groups;
238.How do I check the currently installed release of
applications? Select realease_name
from fnd_product_ groups;
239.How to find the name of a form?
Navigate Help-->About Oracle
Applications
32. 240.How do you cancel a running concurrent request?
Navigate Concurrent Request Summary form, select a
request. In character, do a Quickpick on the Status column.
You can select Cancel or Hold
241.Why does Help-->Tools-->Examine ask for a password?
This profile option controls whether users can use the
Examine utility
The password should be the APPS password
242.What are .lgi files?
It contains informational messages, such as files that were
not applied
Its location is $APPL_TOP/admin/ SID/log
243.What is location of .cfg? and its purpose?
This file is defined by environment variable
FORMS60_WEB_ CONFIG_FILE. This is usually in
directory $OA_HTML/bin on forms tier. This file is used by
any forms client session. When a user tries to access forms ,
f60webmx picks up this file and based on this configuration
file creates a forms session to user/client.
244.Where would i find .rf9 file, and what exactly it does?
These files are used during restart of patch in case of patch
failure.
Location is $APPL_TOP/admin/ SID
245.Whats US directory in $AD_TOP or under various product
TOP's ?
US directory is default language directory in Oracle
Applications. If you have multiple languages installed in your
Applications then you will see other languages directories
besides US, that directory will contain reports, fmx and other
code in that respective directory like FR for France, AR for
arabic, simplifies chinese or spanish.
246.How to find Version of Apache used with oracle apps 11i ?
Go to location $IAS_ORACLE_ HOME/Apache/
Apache/bin and run this command ./httpd -version
33. 247.How do you work with multiple oracle homes?
Whatever oracle home you want to work, Source that
environment file
248.What is concurrent request?
When a user runs a report, a request will be generated. The
command to run that report is called Concurrent request
249.How do you rebuild the oraInventory?
1) If inventory_loc is not there in oraInst.loc, create it
manually
2) Rename the corrupted globale inventory with a different
name
3) Apply OUI patch(5035661)
4) Run the OUISetup.pl script on both
IAS_ORACLE_HOME & RDBMS_ORACLE_ HOME
5) Change the permissions of new OraInventory
6) Run the runInstaller. sh command on
$ORACLE_HOME/ appsoui/oui/ install
250.What are .fmb and .fmx files?
When you execute .fmb files, these files will be converted
into .fmx
251.What is the use of restore.sh?
When you run restore.sh, it will come to previous stage like
how it was.
Location: $ORACLE_HOME/ appsutil/ out/contextname/
MMDDhhmm/
252.What is Pasta?
Pasta is the utility to install the printers.
253.How do you kill group processes?
By using awk command
254.What is yellow bar? How to solve?
Whenever the clients are accessing the forms, due to the
security problems, we get yellow bar warning.
To solve this problem, copy identitydb.obj from
production to test system and run Jinitiator.
34. 255.What is the use of SYSAUX tablespace?
SYSAUX tablespace contains statistical data.(It reduces
the burden of system)
256.What is PCTFREE & PCTUSED?
PCTFREE: The percentage of space
reserved for future update of existing data. PCTUSED: The
percentage of minimum space used for insertion of new row
data. This value determines when the block gets back into
Free List table.
257.What does data block header contain?
The header contains general
information about the data; i.e. block address and type of
segments (table, index, etc.). The header also contains
information about the table and the actual row (address) that
holds the data.
258.What is Row Migration?
Oracle will try to shift the entire row
from the current block to another block having 25 (10+15)
units of free space.
259.What is Row Chaining?
When a row is so large that it cannot fit
into one free block, Oracle will span the data into a number
of blocks so that it can hold all of the data. The existence of
such data results in "Row Chaining". Row Chaining is the
storage of data in a chain of blocks.
260.What is listener.ora & tnsnames.ora?
listener.ora: To connect to database,
clients first contact a listener process that typically resides on
database server.
It consists of listener, port, SID name,
hostname. The listener
logs will be $ORACLE_HOME/ network/log
tnsnames.ora: It is located at the client side and it
stores net service names. It contains description, host, port,
35. protocol, servicename, address. The location of these two
configuration files is $ORACLE_HOME/ network/admin
261.Types of checkpoints?
Full checkpoint, Incremental
checkpoint, Partial checkpoint
262. Why do we get snapshot too old error?
If undo tablespace is having
insufficient space, we get this error.
263.What is profile?
Profile controls the behaviour of
applications
264. What is the use of 3 Oracle Homes?
There are three $ORACLE_HOME
in Oracle Apps, Two for Application Tier (Middle Tier) and
One in Database tier.
8.0.6 ORACLE_HOME: On Application Tier used to store
8.0.6 techstack software. This is used by forms, reports &
discoverer. ORACLE_HOME should point to this
ORACLE_HOME which applying Apps Patch.
IAS_ORACLE_HOME: On Application Tier used by iAS
(Web Server) techstack software. This is used by Web
Listener & contains Apache.
RDBMS ORACLE_HOME: On Database Tier used by
Database Software usually 8i,9i or 10g database.
265.What is RDA?
RDA is a set of command line diagnostic scripts that are executed
by an engine written in the Perl programming language. RDA is
used to gather detailed information about an Oracle environment;
the data gathered is in turn used to aid in problem diagnosis. The
output is also useful for seeing the overall system configuration.
36. Oracle Support encourages the use of RDA because it provides a
comprehensive picture of the customer's environment. This can
greatly reduce service request resolution time by minimizing the
number of requests from Oracle Customer Support for more
information. RDA is designed to be as unobtrusive as possible; it
does not modify systems in any way, it only collects useful data for
Oracle Customer Support.
266. How to manually change the APPLSYS, APPS and
APPLSYSPUB passwords for Applications?
• All users should be log out of application.
• Shutdown the concurrent managers
• Login as Sys Admin
• Navigate to SecurityOracleRegister
• At the same time, login as the SYSTEM user
• In the applications session, enter the new password for
APPLSYS
• Save the changes
• ALTER USER <APPLSYS USERNAME> IDENTIFIED
BY <NEW PASSWORD>
• In the same applications session, change the APPS and
APPLSYSPUB password
• Save the change
• ALTER USER APPLSYS IDENTIFIED BY
XXX; ALTER USER APPS IDENTIFIED BY
37. XXX; ALTER USER APPLSYS IDENTIFIED BY
XXX;
• Open a new session in applications, without closing the
previous session, and login
• Restart the concurrent managers
267.In a Multi Node Installation, how will you find which node
is running what Services?
Query the table FND_NODES and check for the columns
SUPPORT_CP for Concurrent Manager
SUPPORT_FORMS for
Forms server
SUPPORT_WEB for Web Server
SUPPORT_ADMIN for Admin Server
SUPPORT_DB for database tier
268. Can FNDLIBR be restored if it is deleted?
Yes, you can restore FNDLIBR executables
run adadmin on concurrent manager node
select option 2. Maintain Applications Files menu
then select 1. Relink Applications programs
when prompts for
Enter list of products to link ('all' for all products) [all]
select FND
when prompt for
Generate specific executables for each selected product [No] ?
YES
select YES
& from list of executables select FNDLIBR
This will create new FNDLIBR executables.
38. 269. What are .odf file in apps patch?
odf stands for Object Description Files used to create tables &
other database objects
+++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
+
1 What is the adutilities ?
2 When applying the patch if you get an error worker1 is failed
then what utility is used to
examine the adutility ? and where the log files whill be stored ?
3 What is adrelink ?
4 If a library file libar.a contains raacet.o and oracle supports asks
u to remove the raacet.o
file then how do you remove it from libar.a ?
5 How does autopatch works ??
6 What is adodfcmp?
7 What is ADUNLOAD ?
8 What is the use if FNDXLOAD ?
9 when applying the patch if you get an error FND_INSTALL_
PROCESSES table alredy
exists ? Then what do you do?
10 How do you clone the oracle applications ? What does adclone
do ?
11 How do you find out patch set level of applications ?
12 patch history database ??
13 what os commnad is used to find the version of a file ? and
what is the oracle applications utility?
14 What you do if your temp table space getting full frequently ?
39. 15 When do you rebuild Indexes ??
16 How do you change the apps password ??
17 How do you restrict the SQL access based on IP address ??
18 What does the gather schema does ? how frequently you run
this program ??
19 If you try to run netca/netmgr on unix and you get an error
unable to configure
netca,netmgr even though the files present in $OH/bin What could
be the problem ?
20 What do you do you do if records struck in the interface
tables ????
21 Oracle Applications has APPLSYSD,APPLSYSX ARE NOT
LOCALLY MANAGED
TABLESPACE, HOW DO YOU REORGANIZE THESE
TABLESPACE ?
22 CAN I CONVERT SYSTM TABLESPACE FROM
DICTIONARY TO LOCALLY
MANAGED TABLESPACE IN 8I ???
23 How to convert dictionary managable tablespact to locally
managable tablespace ?
24 Why is the table extending with the next extent that is specified
even though it is a locally
managed tablespace.
25 How to Resize a Datafile ??
26 How to 'DROP' a Datafile from a Tablespace??
27 How do you Determining the Source of Invalid Objects ???
28 What is core fiel ? how do you examine the core file ??
29 What command is used to find size of a process ???
30 How do you find out what shared memorysegments are
assigedn to different os users ??
31 Some cases if you down the database even though shared
memory is not released what
command is used to clear the shared memory ??
32 How big i create the data file size ??
40. 33 when do i go for multiple dbwr processes ???what parameters
are considered ???
34 When you run a report you got snapshot tool old error? what do
you do ???
35 How do i see what is there in redolog files ??
36 How do you get the free space, used space for a tablesapce ??
37 What is the difference between row migration and row
chaining??
38 How to Turn Archiving ON and OFF ???
39 CAN ARCHIVING BE TURNED OFF/ON WITHOUT
BOUNCING THE DATABASE?
40 ALTER SYSTEM ARCHIVE LOG STOP DOES NOT TURN
OFF ARCHIVELOG MODE
Then what do you do ??
41 How do you estimate the amount of redo per day??
42 What you do if you get an error CANNOT ALLOCATE LOG,
ARCHIVAL REQUIRED
43 what is responsibility ??
44 what is the use of responsibility key defining the
responsibility ??
45 what is a adata group ?
46 what is Request Security group ?
47 what is menu in oracle applications ??
48 What is the profile option is used to set the window help ??
49 Unable to login to personal home page after upgrade the
database from 9.0.1.3 to 9.2.0.2 ??
50 Cannot view Workflow Monitor Diagrams ??
51 Unable to see online help ??
52 while applying the patch if you get an error on database tire ??
53 How to remove yello worning bar??
54 How to communicate clients to the applications ?
55 How to release the space below high water mark ?
56 What should be the size of redolog members ?
41. 57 How do i set optimal parameter for rollback segments ?
58 Unable to allocate log sequence number ?
59 How to find the paging space in AIX system ??
60 how to find out the physical memory on AIX ??
61 How to find out what divesies are defined to the system ??
62 How to find the number of processor in a system ??
63 How to estimate of the percentage of cpu and memory utilized
by each process currently
running ??
64 how to determining how much paging activity is taking place
on the system. Also gives
useful cpu usage info.
65 How to determining disk utilization for each hard drive?
66 How do I find out the operating system version?
67 How do I found out the process memory space usage?
68 How to find which instance owns which shared memory and
semaphores On a Unix machine
give the following commands
69 How do you generate Apps Forms menu modules or MMB
files?
70 How do you generate Apps Forms modules or FMB files?
71 How do you generate Apps Forms library modules or PLL
files?
72 When do you have to regenerate your Apps Forms modules?
73 What is compile_all= special?
74 How do you get the latest package release?
75 How can you affect the look and feel of your Apps forms?
76 How do you disable direct Forms access through the http://host:
port/dev60cgi/ f60cgi URL?
77 How is Forms load balancing accomplished?
78 How is Forms load balancing accomplished with Forms listener
servlet?
79 How to set up Forms to work through a firewall?
80 Note down some important profile options in sysadmin point of
view ???
42. 81 What is f60webmx?
82 How can you recreate the f60webmx executable?
83 How do you enable Forms Runtime Diagnostics (FRD) in
Apps?
84 Are there any changes to the Forms product components when
in Forms listener servlet?
85 How do you change the background color of a required item in
Apps?
86 How can you affect the look and feel of your Apps forms?
87 How to create a custom event alert to fire against a custom table
??
88 How to integrate custom applications with oracle
applications? ??
89 What are the actual executables called?
90 What are some of the related Forms/Apps files?
91 List most usefull profile options for concurrent managers ??
92 How to find the files which contain the string
MTL_SYSTEM_ITEMS_ KFV ?
93 Why do I have invalid objects? What causes them?
94 Why does Oracle Support always tell me to recompile my
invalid objects?
95 Are invalid objects ever acceptable? How many is too many?
96 Are invalid objects ever acceptable? How many is too many?
97 If we do not use the application with the invalid objects, can we
delete them?
98 Which OBJECTS table is best to use for queries? ALL, USER
or DBA?
99 How can I recompile all my invalid objects using
ADCOMPSC.pls?
100 What Oracle Applications DBA has useful collection of SQL
scripts.
101 How to cancel the request which is submited by other user??
102 How to bounce the http server for maximo ???
103 Finding the maximum number of processes defined per user
43. 104 How to determine os file system block size in AIX??
105 Is it posible to create a Database link without alias in
tnsnames.ora ?
106 How to determine size of a oracle process on Unix ?
107 How do you create a database link with out changing
tnsnames.ora file ??
108 Grant privs to access v$ views ?
109 What command is used to find the zombi processes /dead
process in unix?
110 How to kill all the processes under perticulat file system ?
111 How to find what are the products installed in your database ?
112 Create a directory with the user privaliges from root
113 Exporting a database from 9i and Importing on 8.1.7 database
114 How to find the file size greater than 2Gb ?
115 How to determine the size of a Table ?
116 How do I restrict or allow a few client machines to connect to
Server ?
117 Export file Greater than 2GB is not a problem in 8I ?
118 How to eliminate migrated or chained rows ?
119 Performance Measurement of PLSQL code by
DBMS_PROFILER
120 When to rebuid an index ?
121 Explain the analytical functions with examples
• ROLLUP AND CUBE AGGREGATE FUNCTIONS
• RANKED FUNCTION
• CASE
• LAG AND LEAD FUNCTION
• RATIO_TO_REPORT
122 What is High Water Mark ?
123. what is the utility used to licence a product ? Is it possible to
delicence a product which is
fully licenced ?
44. 124 How to find the version of iAS ?
125 How to generate a report on Unix ?
126 How to generate a report on NT ?
127 Running SQL*Trace on an Applications Report ?
128 How to find ojsp version ?
1 What is the adutilities ?
A: AD Utilities are a group of tools designed to install, upgrade,
maintain, and patch a specific set of products contained in a given
release of Oracle Applications.
2 When applying the patch if you get an error worker1 is failed
then what utility is used to
examine the adutility ? and where the log files whill be stored ?
A: adctrl, $APPL_TOP/admin/ <SID>/log
3 What is adrelink ?
AD Relink (or adrelink) allows you to relink Oracle Applications
executable programs with the Oracle Server product libraries. You
can run the adrelink utility manually to relink individual
executable programs, or use the relink option in the AD
Administration utility to relink all executable programs.
adrelink force=y ranlib=y "ar RAXTRX"
$adrelink force=y ranlib=y "fnd all"
3 If a library file libar.a contains raacet.o and oracle supports asks
u to remove the raacet.o
file then how do you remove it from libar.a ?
ar -d libar.a raacet.o
45. 5 How does autopatch works ??
The following steps summarize the way autopatch works:
1. You log in as applmgr and run your applications environment
file.
2. Unload the new software into a patch directory and start the
autopatch utility under a Bourne or Korn shell.
3. After you answer some questions, Autopatch identifies the
Oracle Applications products that need to be updated.
4. Autopatch extracts the appropriate files from each product's C
library. (adlibout,adlibout. log)
5. Autopatch compares the extracted object modules (C libraries)
with their corresponding files in the patch directory. It also makes
this type of comparison with files such as forms, reports, and SQL
scripts. (admvcode, admvcode.log)
6. If a file in the patch directory is a more recent version than the
product's current file, autopatch backs up the product's current file
by appending "O" to it's filename. (Every file in $APPL_TOP has
version information inside it)
7. Autopatch then replaces each product_s outdated files with
newer files from the patch directory.
8. Autopatch loads the new object modules into the C libraries.
(adlibin, adlibin.log)
9. Autopatch backs up any files you listed in adlinkbk.txt. (this
occurs in Rel 11.X only)
46. 10. Autopatch relinks the Oracle Applications products with the
Oracle Database. (adrelink, aderlink.log)
11. Autopatch runs sql scripts and exec commands, which change
Oracle Applications database objects. By default, autopatch does
this in parallel.
12. Autopatch copies any specified PL/SQL, Java, HTML, or
media files to their respective destinations.
13. Autopatch generates Oracle Forms files.
14. Autopatch generates Oracle Reports files.
15. Autopatch appends a record of how it changed your system to
applptch.txt in
the $APPLT_TOP directory.
6 What is adodfcmp?
adodfcmp is an object comparisan utility.
$adodfcmp <parameter>= <value> [<parameter> =<value> ]
7 What is ADUNLOAD ?
This utility is used to unload Oracle Applications product files
from CD-ROM. The unload utility is provided in case you need to
unload a small number of files after you have installed or upgraded
your system
$adunload product=gl
$adunload product=gl directory=forms/ US filename=GLSTUOM.
fmb
47. 8 What is the use if FNDXLOAD ?
FNDXLOAD is a concurrent program that can move Oracle
Applications seed data between
database and text file representations. The loader reads a
configuration file to determine
what data to access. For information on specific configuration files
consult the Open Interfaces Guide for your product group. The
following sections describe the operation of the Generic Data
Loader.
FNDXLOAD <username/password> 0 Y
UPLOAD | DOWNLOAD <config_file> <data_file>
<entity> [<parameters> ]
where
<username/password> is the APPLSYS account
<config_file> is the configuration file
<data_file> is the file that will be read or written
<entity> dentifies the entity to upload or download
<paramaters> is a list of optional parameters of the form
AME=VALUE. Parameters vary for each
onfiguration file. Review the documentation for
our configuration file for a list of parameters that
an be set.
9 when applying the patch if you get an error FND_INSTALL_
PROCESSES table alredy
exists ? Then what do you do?
If previous patch is not applied successfully then this table will not
drop, You have to login to sql as applsys/apps then drop this table
and reapply the patch.
48. 10 How do you clone the oracle applications ? What does adclone
do ?
adclone
autoconfg
manual cloning(not supported)
11 How do you find out patch set level of applications ?
patches.sh, adutconf.sql
12 patch history database ??
applptch.txt or ad_applied_patches( table)
13 what os commnad is used to find the version of a file ? and
what is the oracle applications utility?
strings -s <file name> | grep "Header" or adident <file name>
14 What you do if your temp table space getting full frequently ?
Create new temp tablespace,
assign all users temp tablespace newone.
drop old temp tablespad >
or
increase the temp tablespace size
1) Create the new temporary tablespace temp_local;
Ex: create temporary tablespace temp_local
tempfile '/testdata/testdata /temp_local. dbf' size 1500M
extent management local uniform size 150K
2) Change the users temporary tablespace to new one.
49. select 'alter user ' || username|| ' temporary tablespace temp_local;'
from dba_users
where temporary_tablespac e='TEMP'
run the spool file created above
3) You cannot drop the temp tablespace directoly check the default
temporary tablespace
for this instance
select * from database_properties
where property_name = 'DEFAULT_TEMP_ TABLESPACE' ;
the above query will show the old temp tablespace as default
temporary tablespac.
4) Assign the default temporary tablespace to new one
alter database default temporary tablespace temp_local;
5) Drop the old temporary tablespace
drop tablespace temp including contents;
drop tablespace TEMP2 including contents and datafiles;
15 When do you rebuild Indexes ??
Please review articles 77574.1 and 108573.1
16 How do you change the apps password ??
FNDCPASS
Usage: FNDCPASS logon 0 Y system/password mode username
new_password
50. where logon is username/password[ @connect]
system/password is password of the system account of that
database
mode is SYSTEM/USER/ ORACLE
username is the username where you want to change its password
new_password is the new password in unencrypted format
example FNDCPASS apps/apps 0 Y system/manager SYSTEM
APPLSYS WELCOME
FNDCPASS apps/apps 0 Y system/manager ORACLE GL GL1
FNDCPASS apps/apps 0 Y system/manager USER VISION
WELCOME
Some you may need to change the password even after using the
above utility the file name is
as wdbsvr.app
17 How do you restrict the SQL access based on IP address ??
SQLNET.ora
tcp.validnode_ checking= yes
tcp.invited_ nodes=(10. 190.0.21, 10.190.0. 25)
#tcp.exclude_ nodes
18 What does the gather schema does ? how frequently you run
this program ??
Collect the statistics for the schemas/specified schema which will
increase the performance
19 If you try to run netca/netmgr on unix and you get an error
unable to configure
netca,netmgr even though the files present in $OH/bin What could
be the problem ?
51. A: note set $ORACLE_HOME/ lib33 for LD_LIBRARY_PATH
20 What do you do you do if records struck in the interface
tables ????
A: Fine out the error in enterface table, rectifie the error by
updateing the records in interface tablles. Re submit the import.
21 Oracle Applications has APPLSYSD,APPLSYSX ARE NOT
LOCALLY MANAGED
TABLESPACE, HOW DO YOU REORGANIZE THESE
TABLESPACE ?
EXPORT /IMPORT
22 CAN I CONVERT SYSTM TABLESPACE FROM
DICTIONARY TO LOCALLY
MANAGED TABLESPACE IN 8I ???
NO, BUT POSIBLE IN 9i(2)
23 How to convert dictionary managable tablespact to locally
managable tablespace ?
You migrate a locally managed tablespace and get the following
error message:
1 - There is no data in the tablespace : ORA-03214
SQL> create tablespace MIGTOLOC
2 datafile '/ora/ora901/ oradata/V901/ migtoloc01. dbf'
3 size 10K EXTENT MANAGEMENT DICTIONARY;
Tablespace created.
52. SQL> execute sys.dbms_space_ admin.tablespace _migrate_
to_local( -
> tablespace_name= >'MIGTOLOC' ,-
> rfno=>9);
BEGIN sys.dbms_space_ admin.tablespace _migrate_
to_local( tablespace_ name=>'MIGTOLOC' ,rfno=>9) ; END;
*
ERROR at line 1:
ORA-03214: File Size specified is smaller than minimum required
ORA-06512: at "SYS.DBMS_SPACE_ ADMIN", line 0
ORA-06512: at line 1
2 - There are some data in the tablespace : ORA-03244
SQL> create tablespace MIGTOLOC
2 datafile '/ora/ora901/ oradata/V901/ migtoloc01. dbf'
3 size 20K EXTENT MANAGEMENT DICTIONARY;
Tablespace created.
SQL> create table TMIG (c number) tablespace MIGTOLOC;
Table created.
SQL> execute sys.dbms_space_ admin.tablespace _migrate_
to_local( -
> tablespace_name= >'MIGTOLOC' ,-
> rfno=>9);
BEGIN sys.dbms_space_ admin.tablespace _migrate_
to_local( tablespace_ name=>'MIGTOLOC' ,rfno=>9) ; END;
*
ERROR at line 1:
ORA-03244: No free space found to place the control information
ORA-06512: at "SYS.DBMS_SPACE_ ADMIN", line 0
53. ORA-06512: at line 1
Solution Description:
------------ ---------
Increase the size for the datafile :
SQL> alter database datafile '/ora/ora901/ oradata/V901/
migtoloc01. dbf'
2 resize 100K;
Database altered.
SQL> execute sys.dbms_space_ admin.tablespace _migrate_
to_local( -
> tablespace_name= >'MIGTOLOC' ,-
> rfno=>9);
PL/SQL procedure successfully completed.
Explanation:
------------
When converting a tablespace from dictionary management to
local management, Oracle creates bitmaps in the datafile.
Therefore the required space needs to be available in the datafile.
Next Extent Size After Migrating Tablespace from Dictionary to
Locally Managed
MIGRATED TABLESPACES
------------ --------
After migrating a dictionary managed tablespace to locally
managed tablespace, the tables are still extending with the next
54. extent specified even though it is now a locally managed
tablespace.
Example:
============ ========= ========= =========
========= ==
MIGRATE FROM DICTIONARY MANAGED TO LOCALLY
MANAGED
============ ========= ========= =========
========= ==
SQL> begin
2 dbms_space_admin. tablespace_ migrate_to_ local
3 (tablespace_ name=> 'USERS', rfno=>5);
4 end;
5/
PL/SQL procedure successfully completed.
============ ========= ========= =========
========
Verify that tablespace is now locally-managed:
============ ========= ========= =========
========
SQL> select TABLESPACE_NAME,
EXTENT_MANAGEMENT
2 FROM DBA_TABLESPACES
3 where tablespace_name = 'USERS';
TABLESPACE_NAME EXTENT_MAN
------------ --------- --------- ----------
USERS LOCAL
============ ========= ========= =========
========= =
CREATE TABLE with the storage segments;
55. ============ ========= ========= =========
========= =
SQL> create table DW_GSO_COLLN_ NEW
2 tablespace USERS
3 storage (initial 500M next 500M pctincrease 0)
4 as select * from cdwadm.dw_gso_ colln
5 where rownum < 10000000;
Table created.
SQL> select segment_name, extent_id, bytes
2 from dba_extents
3 where segment_name= 'DW_GSO_COLLN_ NEW';
SEGMENT_NAME EXTENT_ID BYTES
------------ --------- --------- ---------- ----------
DW_GSO_COLLN_ NEW 0 524288000
DW_GSO_COLLN_ NEW 1 524288000
DW_GSO_COLLN_ NEW 2 524288000
QUESTION:
24Why is the table extending with the next extent that is specified
even though it is a locally
managed tablespace.
ANSWER:
Migrated tablespaces are not subject to the UNIFORM/SYSTEM
policy of newly created locally managed tablespaces. This would
be too difficult to implement, since the tablespace is likely to
contain the existing objects which already aviolate new policy. For
this reason, migrated tablespace only support the same
allocation policy as the dictionary tablespaces. If you select from
DBA_TABLESPACES, you should see "USER" value in the
ALLOCATION_TYPE column for migrated tablespaces, and
UNIFORM or SYSTEM value for tablespaces which were created
as locally managed. Therefore, the user does not get the policy
benefits from migration, but can still get performance benefits - no
ST enqueue contention and more efficient extent operations.
56. SQL> select TABLESPACE_NAME,
EXTENT_MANAGEMENT, ALLOCATION_TYPE,
PLUGGED_IN
2 from DBA_TABLESPACES;
25 How to Resize a Datafile??
How to Resize a Datafile:
============ ========= ====
Datafile management has two sides to it: not enough room for
existing
datafiles, or not enough room IN existing datafiles. Typical
solutions are to drop and recreate the tablespace with different
sized datafiles, or to add more datafiles to a tablespace.
RESIZE. This option allows you to change the physical size of a
datafile from what was specified during its creation.
I. Increase Datafile Size
II. Decrease Datafile Size
III. Cautions and Warnings
Attempting to use the RESIZE command on versions prior to 7.2
will receive the following error:
ORA-00923: FROM keyword not found where expected
I. INCREASE DATAFILE SIZE
To increase the size of a datafile, you would use the command:
57. ALTER DATABASE DATAFILE '<full_path_ name>' RESIZE
<integer> [K|M];
where the size specified is larger than the existing file size. Check
V$DATAFILE for current settings. The BYTES column shows the
current size of the datafile, and the CREATE_BYTES column
shows what the size was specified when the file was created. The
size of the datafile will also be changed at the operating system
level.
For example:
FILE# STATUS ENABLED CHECKPOINT BYTES
CREATE_BYT NAME
------ ------- ---------- ---------- -------- ---------- ------------ ----
5 ONLINE READ WRITE 7450 2097152 102400
/databases/oracle/ test.dbf
As you can see, the file was created with a size of 100K
(CREATE_BYTES) and was increased to a size of 2MB (BYTES)
with the RESIZE command.
II. DECREASE DATAFILE SIZE
To decrease the size of a datafile, you use the same command, but
specify a size smaller than the existing datafile. For example, we
could reduce the file above back to 1MB with the command:
ALTER DATABASE DATAFILE '/databases/ oracle/test. dbf'
RESIZE 1MB;
Downsizing a datafile is more complicated than increasing the size
of a
58. datafile. You cannot deallocate space from a datafile that is
currently being used by database objects. To remove space from a
datafile, you have to have contiguous space at the END of the
datafile.Check the view
DBA_FREE_SPACE to see how much space is not being used in a
datafile. For the above file we get:
SELECT * FROM DBA_FREE_SPACE
WHERE TABLESPACE_NAME= 'TEMP'
ORDER BY BLOCK_ID;
TABLESPACE_NAME FILE_ID BLOCK_ID BYTES BLOCKS
------------ ------ ---------- ---------- ---------- ----------
TEMP 4 2 102400 50
TEMP 4 55 96256 47
TEMP 4 102 1890304 923
As you can see, there are two large extents at the high end of the
datafile (BLOCK_ID = 55 and contains 47 blocks,
BLOCK_ID=102 and contains 923 blocks). This means there are
1986560 unused bytes at the end of our datafile, almost 2MB. We
want to leave some room for growth in our datafile, and depending
on how the objects in that datafile allocate new extents, we could
remove easily up to 1.89MB of disk space from the datafile
without damaging any objects in the tablespace.
If you have a large extent in the middle of a datafile, and some
object taking up room at the end of the datafile, you can use the
query FINDEXT.SQL to find this object. If you export this object,
then drop it, you should then free up contiguous space at the end of
your datafile so you will be able to resize it smaller. Make sure you
leave enough room in the datafile for importing the object back
into the tablespace.
59. FINDEXT.SQL
Script to find database object locations for a given datafile.
REM findext.sql
REM This script prompts user for a datafile ID number, and
REM then lists all the segments contained in that datafile,
REM the blockid where it starts, and how many blocks the
REM segment contains. It shows the owner, segment name, and
REM segment type
SET ECHO OFF
ttitle - center 'Segment Extent Summary' skip 2
col ownr format a8 heading 'Owner' justify c
col type format a8 heading 'Type' justify c trunc
col name format a28 heading 'Segment Name' justify c
col exid format 990 heading 'Extent#' justify c
col fiid format 9990 heading 'File#' justify c
col blid format 99990 heading 'Block#' justify c
col blks format 999,990 heading 'Blocks' justify c
select
owner ownr,
segment_name name,
segment_type type,
extent_id exid,
file_id fiid,
block_id blid,
blocks blks
from
dba_extents
where file_id = &file_id order by block_id
/
Example Output:
60. SQL> @findext.sql
Enter value for file_id: 5
old 12: file_id = &file_id
new 12: file_id = 5
Segment Extent Summary
Owner Segment Name Type Extent# File# Block# Blocks
-------- ------------ -------- ------- ------ ------- --------
USER EMP TABLE 0 5 2 5
USER TAB3 TABLE 0 5 108 5
USER TEST TABLE 0 5 348 5
USER PK_EMP INDEX 0 5 483 5
USER EMP TABLE 1 5 433 5
USER EMP TABLE 2 5 438 10
USER PK_EMP INDEX 1 5 488 10
III. CAUTIONS AND WARNINGS
For safety reasons, you should take a backup of your database
whenever you change its structure, which includes altering the size
of datafiles.
If you try to resize a datafile to a size smaller than is needed to
contain all the database objects in that datafile, you will get an
error:
ORA-03297: file contains <number> blocks of data beyond
requested RESIZE value
The resize operation will fail at this point.
If you try to resize a datafile larger than can be created, you will
also get an error. For instance, in trying to create a file of 2GIG,
61. without 2GIG of available disk space you will get something
similar to:
ORA-01237: cannot extend datafile <number>
ORA-01110: data file <number>: '<full_path_ name>'
ORA-09971: sfsfs: write error, unable to write header block.
If you check V$DATAFILE, you will see that the file size does not
change unless the operation is successful.
Finally, if using multiple database writers (db_writers > 1), you
might run into [BUG:311905] . This appears as ORA-7374 errors
when accessing the datafile after it has been resized. The
workaround is to shutdown and restart the database after resizing a
datafile (a convenient time to take a backup). This will cause the
new datafile size information to be refreshed to all the dbwr slave
processes. This bug is fixed in RDBMS version 7.3.3.
MANUAL versus AUTOMATIC extension:
Be careful giving datafiles the AUTOEXTEND attribute, certainly
specify the NEXT and MAXSIZE parameters, set appropriate
values for the default storage parameters on tablespace level and
MAXEXTENTS; for objects in these tablespaces specify explicitly
INITIAL and NEXT extent size as well as MAXEXTENTS; avoid
UNLIMITED sizes and extents to prevent objects with a very high
number of extents will be created; this causes not only
a huge number of records in the dictionary tables, but dropping
them will take a very long time while smon is consuming all cpu
resources it can get.
26 How to 'DROP' a Datafile from a Tablespace?
How to 'DROP' a Datafile from a Tablespace:
62. ============ ========= ========= ========= ====
Before we start with detailed explanations of the process involved,
please note that Oracle does not provide an interface for dropping
datafiles in the same way that you could drop a schema object such
as a table, a view, a user, etc. Once you make a datafile part of a
tablespace, the datafile CANNOT be removed, although we can
use some workarounds. Before performing certain operations such
as taking tablespaces/ datafiles offline, and trying to drop them,
ensure you have a full backup. If the datafile you wish to remove is
the only datafile in that tablespace, simply drop the entire
tablespace using:
DROP TABLESPACE <tablespace name> INCLUDING
CONTENTS;
You can confirm how many datafiles make up a tablespace by
running the
following query:
select file_name, tablespace_name
from dba_data_files
where tablespace_name ='<name of tablespace>' ;
The DROP TABLESPACE command removes the tablespace, the
datafile, and the tablespace's contents from the data dictionary.
Oracle will no longer have access to ANY object that was
contained in this tablespace. The physical datafile must then be
removed using an operating system command (Oracle NEVER
physically removes any datafiles). Depending on which platform
you try this on, you may not be able to physically delete the
datafile until Oracle is completely shut down. (For example, on
Windows NT, you may have to shutdown Oracle AND stop the
associated service before the operating system will allow you to
delete the file - in some cases, file locks are still held by Oracle.)
63. If you have more than one datafile in the tablespace, and you do
NOT need the information contained in that tablespace, or if you
can easily recreate the information in this tablespace, then use the
same command as above:
DROP TABLESPACE <tablespace name> INCLUDING
CONTENTS;
Again, this will remove the tablespace, the datafiles, and the
tablespace's contents from the data dictionary. Oracle will no
longer have access to ANY object that was contained in this
tablespace. You can then use CREATE TABLESPACE and re-
import the appropriate objects back into the tablespace. If you have
more than one datafile in the tablespace and you wish to keep the
objects that reside in the other datafile(s) which are part of this
tablespace, then you must export all the objects inside the affected
tablespace. Gather information on the current datafiles within the
tablespace by running this query:
select file_name, tablespace_name
from dba_data_files
where tablespace_name ='<name of tablespace>' ;
Make sure you specify the tablespace name in capital letters. In
order to allow you to identify which objects are inside the affected
tablespace for the purposes of running your export, use the
following query:
select owner,segment_ name,segment_ type
from dba_segments
where tablespace_name= '<name of tablespace>'
64. Now, export all the objects that you wish to keep. Once the export
is done, issue the DROP TABLESPACE tablespace INCLUDING
CONTENTS.
Note that this PERMANENTLY removes all objects in this
tablespace. Delete the datafiles belonging to this tablespace using
the operating system. (See the comment above about possible
problems in doing this.) Recreate the tablespace with the datafile(s)
desired, then import the objects into that tablespace. (This may
have to be done at the table level, depending on how the tablespace
was organized.)
NOTE:
The ALTER DATABASE DATAFILE <datafile name> OFFLINE
DROP command, is not meant to allow you to remove a datafile.
What the command really means is that you are offlining the
datafile with the intention of dropping the tablespace. If you are
running in archivelog mode, you can also use:
ALTER DATABASE DATAFILE <datafile name> OFFLINE;
instead of OFFLINE DROP. Once the datafile is offline, Oracle no
longer
attempts to access it, but it is still considered part of that
tablespace. This datafile is marked only as offline in the controlfile
and there is no SCN comparison done between the controlfile and
the datafile during startup (This also allows you to startup a
database with a non-critical datafile missing). The entry for that
datafile is not deleted from the controlfile to give us the
opportunity to recover that datafile. If you do not wish to follow
any of these procedures, there are other things that can be done
besides dropping the tablespace.
- If the reason you wanted to drop the file is because you
mistakenly created the file of the wrong size, then consider using
the RESIZE command.See 'Related Documents' below.
65. - If you really added the datafile by mistake, and Oracle has not yet
allocated any space within this datafile, then you can use
ALTER DATABASE DATAFILE <filename> RESIZE;
command to make the file smaller than 5 Oracle blocks. If the
datafile is resized to smaller than 5 oracle blocks, then it will never
be considered for extent allocation. At some later date, the
tablespace can be rebuilt to exclude the incorrect datafile.
27 How do you Determining the Source of Invalid Objects ???
Identifying Problem Object(s)
------------ --------- -------
The following SQL*Plus query may be used to identify the object
which is
the source of the problem:
sql> SELECT owner, object_type, object_name
FROM dba_objects
WHERE status = 'INVALID'
AND object_name IN (SELECT referenced_name
FROM dba_dependencies
WHERE name = '<INVALID_OBJECT_ NAME>');
For this query to work, select privilege to the dba_dependencies
and
dba_objects is required. The actual invalid object name must be
substituted for the <INVALID_OBJECT_ NAME> as indicated
above.
The subquery finds all the objects that the invalid object depends
on.
66. The outer query brings up the owner, type, and name for any
invalid objects
on which the INVALID_OBJECT depends. This identifies the
source package(s)
and eliminates wasted time attempting to compile the wrong
objects.
This query should be run interactively, replacing the value of
INVALID_OBJECT_ NAME until zero rows are returned.
Validating Objects
------------ ------
When the above query on an object returns zero rows, attempt to
validate that
object name using the following command:
ALTER PACKAGE invalid_pkg_ name COMPILE;
If it compiles, then try recompiling those objects that were
dependent on
that object. If it doesn't compile, issue the following command
from within
SQL*Plus.
sql>SHOW ERRORS
Or use the following SQL command and search the dba_errors
table:
sql> SELECT NAME,TEXT FROM DBA_ERRORS WHERE
NAME ='<INVALID_OBJECT_ NAME>';
Use the results from that query to further diagnose the problem(s).
67. EXAMPLE:
Suppose we have the following object dependencies:
Pkg1 (Invalid)
|
|
_______|____ ___
||
Pkg2 (Invalid) Pkg3 (Valid)
|
_______|____ ____
||
Pkg4 (Valid) Pkg5 (Invalid)
Use the following SELECT statement:
sql> SELECT owner, object_type, object_name
FROM dba_objects
WHERE status = 'INVALID'
AND object_name IN (SELECT referenced_name
FROM dba_dependencies
WHERE name = 'PKG1');
The following information is returned:
OWNER OBJECT_TYPE OBJECT_NAME
APPS PACKAGE PKG2
Run the query again for PKG2 instead of PKG1; PKG5 will be
returned.
Run the query once more for PKG5 which then returns zero rows.
68. This indicates that because PKG5 is invalid, it is preventing
the proper compilation of packages PKG2 and PKG1.
Therefore, it is necessary to either rebuild, or determine the
problems
associated with PKG5 before the other two packages will compile.
28 What is core fiel ? how do you examine the core file ??
A: system resource(memory leak etc) dbx utility to examine the
same.
Introduction
~~~~~~~~~~~~
This short article aims explain how to get a stack trace from a
core dump produced by any of the Oracle products. By following
the steps below you can provide Oracle Support with vital
information to help identify the cause of a problem.
Please note that it is important to include information about
the tool being used, any code involved, the operation being
performed, environment etc.. in addition to the details below.
What is a 'core dump' ?
~~~~~~~~~~~~ ~~~~~~~~~ ~~
A core dump is an image copy of a processes state at the
instant it 'aborted'. It is produced in the form of a file
called 'core' usually located in the current directory.
What causes a core dump ?
~~~~~~~~~~~~ ~~~~~~~~~ ~~~~
There are many situations which can cause a core dump to be
produced, but it is usually because the process has attempted
to do something which the operating system does not like. The
69. most common causes of this are:
The program tried to access memory outside its allowed range.
The program tried to obtain a resource which was either
exhausted or unavailable.
An attempt was made to execute illegal instructions.
An attempt was made to read unaligned data
In Unix systems the offending process is sent one of a number
of signals which force a core dump to be produced. It is also
possible for a user to produce a core dump by sending one of
these signals to a process manually.
What should I do if I get a core dump ?
~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~
As with any problem you should first note down the FULL version
numbers of the product, the RDBMS, PL/SQL (if used) and any
related products.
You should also note the EXACT command you were running
when
this occurred. Eg: If it was a SQL*Forms problem and you were
using 'mrunform30' , write this down. This command will be
referred to as 'program' below.
Now follow the instructions below in order:
1) Check you have a 'core' file, it should be in the directory
where the command was issued, or in $ORACLE_HOME/ dbs OR
$ORACLE_HOME/ dbs/core_ NNNNN if it is the 'oracle'
executable.
70. 2) Log in as ORACLE and change in to the $ORACLE_HOME/
bin
directory. Enter the command:
file program
and write the result down letter for letter. If the word
'dynamic' or 'dynamically linked' appears in the output of this
command then please make a note of this as there are a few
platforms on which Oracle does NOT support dynamic linking and
this may be the cause of your problem.
3) Now enter:
chmod +r program
to add read permission to the program.
4) Log out , then log in as the user who encountered the error.
The next step will vary slightly depending on which version
of Unix you are using. One of the following commands should
exist on your machine - try each in order until you find one
that exists:
Command NB Exit command Stack Trace command
------- -- ------------ ------------ -------
dbx quit where
xdb (HPUX 10) quit t
gdb (HPUX 11) q bt
dde (HPUX 11) q bt
sdb q t
adb $q (or Ctrl-D) $c
debug (PTX only) quit stack
71. gdb (Linux) quit bt
Change to the directory where the core dump is located and
enter the commands as in the relevant example below. If you
are not sure which program produced the 'core' file then on
some Unix platforms the command 'file core' will tell you
the executable name that the core file is from (this does
not work on ALL Unix platforms, see note below.)
.
Example commands:
DBX: $ script /tmp/mystack
$ dbx $ORACLE_HOME/ bin/<program> core
(dbx) where
... << Stack should appear here
(dbx) quit
$ exit
XDB: $ script /tmp/mystack
$ xdb $ORACLE_HOME/ bin/<program> core
(xdb) t
... << Stack should appear here
(xdb) quit
$ exit
SDB: $ script /tmp/mystack
$ sdb $ORACLE_HOME/ bin/<program> core
(sdb) t
... << Stack should appear here
(sdb) q
$ exit
(NOTE: In the 'adb' commands below literally type the $c
& $q)
ADB: $ script /tmp/mystack
72. $ adb $ORACLE_HOME/ bin/<program> core
$c << NB: adb has no prompt so just
enter $c
...
$q
$ exit
DEBUG: $ script /tmp/mystack
$ debug -c core $ORACLE_HOME/ bin/<program>
debug> stack
... << Stack should appear here
debug> quit
$ exit
GDB: $ script /tmp/mystack
$ gdb $ORACLE_HOME/ bin/<program> core
(gdb) bt
... << Stack should appear here
(gdb) quit
$ exit
DDE: $ script /tmp/mystack
$ dde -ui line core
$ORACLE_HOME/ bin/<program>
dde> bt
...
dde> q
$exit
Assuming this worked then the stack trace should be shown in
the file '/tmp/mystack' . Upload this to Oracle Support.
5) If the debug command failed to give a stack trace then try
using a different debugger from the list above (if
available). If all debuggers fail then there is probably a
73. problem with either the permissions or the file type - see
the section below and then contact Oracle Support with all
the details you have so far.
Common reasons for not getting a sensible stack
~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~
Filesize Limits:
Note that on some machines there may be a kernel parameter
or
user limit which controls the maximum size of core file that
can be produced - you can usually check this by typing:
limit in the C shell
OR ulimit -a in the Bourne / Korn shells.
If this limit is too small the core file will be useless -
raise the limit and reproduce the problem.
Stripped Executable
Some program executables are stripped of symbol information.
This makes the stack trace useless. If 'file program' shows
the word 'stripped' or 'nm program' shows no output then it
is likely that the executable is stripped of symbolic
information.
In this case the problem tool must be relinked without being
stripped - on most Unix platforms this involves ensuring
there is no '-s' option on the link line. Contact Oracle
Support with details of the link line used to link the tool.
HP Unix
Some platforms like HP Unix need a special object file
linking in at link time to ensure symbols in shared objects
can be reported by the debug tool. Typically this involves
relinking the tool including /usr/lib/end. o on the link
74. line. The location of this special file may be different
depending on your HPUX version. 'xdb' generally tells you
the location of this file if it was not linked into the
executable.
If 'file core' does not return the executable name:
~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~
~~~
Try using the 'strings' command:
csh> setenv LANG C
or
ksh> LANG=C;export LANG ...to get rid of non-ASCII
characters return by 'strings'
> strings -a core | more
The first part of the output may reveal the executable name.
29 What command is used to find size of a process ???
ps -aefl
30 How do you find out what shared memorysegments are
assigedn to different os users ??
ipcs -s
31 Some cases if you down the database even though shared
memory is not released what
command is used to clear the shared memory ??
ipcrm
32 How big i create the data file size ??
Identifying the Oracle database datafile maxsize on a given
platform
75. There are always some ambiguity on the datafile size limit on a
given platform and version of the database. Here is a simple way
of identifying to what size a datafile can grow maximum and then
switch to the next datafile. To identify the same lets create a
tablespace with some default value and set the autoextend on
without the MAXSIZE specified.
SVRMGR>Create tablespace WORK_SPACE_DATA datafile
'/keg4/oradata/ fpdev1/work_ space_data01. dbf' size 400M
AUTOEXTEND ON
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 4M
NOLOGGING;
Lets get the file id of the datafile created for the
WORK_SPACE_DATA tablespace.
SVRMGR>select file_id,file_ name,autoextensi ble from
dba_data_files
where tablespace_name like 'WORK_SPACE_ DATA';
FILE_ID AUT FILE_NAME
---------- --- -------
31 YES /keg4/oradata/ fpdev1/work_ space_data01. dbf
Querying the filext$ table we can get the value of the maximum
size in database blocks the datafile can grow before switching to
the next file. So technically this must be the maximum filesize that
oracle can presumably understand for a database datafile.
SVRMGR> select * from filext$
where file# = 31;
FILE# MAXEXTEND INC
76. ---------- ---------- ----------
31 4194302 1
Setting the default would give you a maximum value of 4194302
blocks with increments of 1block when the datafile extends.
On a database of 8K block size this would work out to be,
SVRMGR> select (4194302*8192) /1024/1024/ 1024 Max from
dual;
Max
----------
31.9999847
So, the database datafile can have a maximum size of 32Gb on a
8k database block size and Sun Solaris8 platform. The above
shows that the dependency is on the database block size for a given
platform. Also if we do not set the MAXSIZE for the datafile ,
then the first datafile would grow to the MAXEXTEND value and
only then would shift to the next datafile for a given tablespace
with multiple datafiles. So it is imperative to set the MAXSIZE
value when turning on the AUTOEXTEND option.
33 when do i go for multiple dbwr processes ???what parameters
are considered ???
34 When you run a report you got snapshot tool old error? what do
you do ???
Shrink the rollback segment and then re-run the report or assign
private rollback segment to report
35 How do i see what is there in redolog files ??
logminor.
77. 36 How do you get the free space, used space for a tablesapce ??
SELECT SUBSTR(FILE_ NAME,1,30) file_name, a.file_id file#,
A.TABLESPACE_ NAME,A.BYTES/ (1024*1024) totsize,
(A.BYTES/(1024* 1024)- round(nvl(SUM( B.BYTES/
( 1024*1024) ),0),2)) used,
nvl(round(SUM( B.BYTES/( 1024*1024) ),2),0) "FREE"
FROM DBA_DATA_FILES A,
DBA_FREE_SPACE B
WHERE A.TABLESPACE_ NAME =B.TABLESPACE_
NAME(+)
AND A.FILE_ID =B.FILE_ID(+ )
AND A.TABLESPACE_ NAME='SYSTEM'
GROUP BY SUBSTR(FILE_ NAME,1,30) , A.TABLESPACE_
NAME,A.BYTES/ (1024*1024) ,a.file_id
order by 2
37 What is the difference between row migration and row
chaining??
Concepts
--------
There are two circumstances when this can occur, the data for a
row in a table may be too large to fit into a single data block. This
can be caused by either row chaining or row migration.
Chaining
---------
Occurs when the row is too large to fit into one data block when it
is first inserted. In this case, Oracle stores the data for the row in a
chain of data blocks (one or more) reserved for that segment. Row
chaining most often occurs with large rows, such as rows that
contain a column of datatype LONG, LONG RAW, LOB, etc.
Row chaining in these cases is unavoidable.