Oracle Apps DBA 常用命令
数据库启动监听 addlnctl.sh start instance 启动数据库 addbctl.sh start 启动应用服务器 adstrtal.sh 停止应用服务器 adstpall.sh ------------------------------- 系统启动/关闭相关的脚本 数据库层 名称: addbctl.sh 说明: Start/Stop database 路径: $
数据库启动监听
addlnctl.sh start instance
启动数据库
addbctl.sh start
启动应用服务器
adstrtal.sh
停止应用服务器
adstpall.sh
-------------------------------
系统启动/关闭相关的脚本
- 数据库层 名称: addbctl.sh
- 应用层 名称: adalnctl.sh
- AllInOne 名称: adstrtal.sh
说明: Start/Stop database
路径: ${ORACLE_HOME}/appsutil/scripts/VIS_ebs121/addbctl.sh
说明: Start / Stop Applications RPC Listener process
路径: ${INST_TOP}/admin/scripts/adalnctl.sh
名称: adapcctl.sh
说明: start, stop and check the status of Oracle HTTP Server.
路径: ${INST_TOP}/admin/scripts/adapcctl.sh
名称: adoacorectl.sh
说明: start, stop and check the status of the oacore oc4j instance
路径: ${INST_TOP}/admin/scripts/adoacorectl.sh
名称: adformsctl.sh
说明: start, stop and check the status of the forms oc4j instance.
路径: ${INST_TOP}/admin/scripts/adformsctl.sh
名称: adcmctl.sh
说明: Start / Stop Concurrent Manager for VIS
路径: ${INST_TOP}/admin/scripts/adcmctl.sh
说明: start Oracle E-Business Suite Services
路径: ${INST_TOP}/admin/scripts/adstrtal.sh
名称: adstpall.sh
说明: stop Oracle E-Business Suite Services
路径: ${INST_TOP}/admin/scripts/adstpall.sh
可以讲这些脚本整合到root用户下, 实现EBS服务的启动与关闭. 以笔者为例:
/root/scripts/start.sh
su - oracle -c "${ORACLE_HOME}/appsutil/scripts/VIS_ebs121/addbctl.sh start"
su - oracle -c "${ORACLE_HOME}/bin/lsnrctl start"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adalnctl.sh start"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adapcctl.sh start"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adoacorectl.sh start"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adformsctl.sh start"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adcmctl.sh start apps/apps"
/root/scripts/stop.sh
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adcmctl.sh stop apps/apps"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adformsctl.sh stop"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adoacorectl.sh stop"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adapcctl.sh stop"
su - applmgr -c "/d01/oracle/VIS/inst/apps/VIS_ebs121/admin/scripts/adalnctl.sh stop"
su - oracle -c "${ORACLE_HOME}/appsutil/scripts/VIS_ebs121/addbctl.sh stop immediate"
-------------------------------
查看HTTP/OC4J Status
adopmnctl.sh status
sample output:
Processes in Instance: mc3yd213_bej301441.bej301441.cn.oracle.com
---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 16924 | Alive
OC4JGroup:default_group | OC4J:forms | 16851 | Alive
OC4JGroup:default_group | OC4J:oacore | 16767 | Alive
HTTP_Server | HTTP_Server | 16710 | Alive
==================================================
Order of Startup Shutdown
————————————–
As in Oracle Apps 11i order for startup is
A) Start Database Tier Services
–Start Database Listener
–Start Database
Then
B) Start Application/Middle Tier Services
– adstrtal.sh
Order for shutdown in Oracle Apps R12 is
A) Stop Application/Middle Tier Services
– adstpall.sh
Then
B) Stop Database Tier Services
–Stop Database
–Stop Database Listener
Database Tier Scripts in R12
————————————–
For Database tier you need to start database and database listener. Scripts are located inDatabase_Install_Dir/db/tech_st/10.2.0/appsutil/scripts/$CONTEXT_NAME- For Database
Use script addbctl.sh
- For Database Listener
Use script addlnctl.sh
or alternatively you can use
lsnrctl startstop listener_name (For Database Listener)
sqlplus “/as sysdba”
SQL> startup shutdownimmediate
Middle/Application Tier Scripts in R12
————————————————-
Scripts for Application Tier services in R12 are located in “Install_base/inst/apps/$CONTEXT_NAME/admin/scripts“
where CONTEXT_NAME is of format SID_HOSTNAME
i) adstrtal.sh
Master script to start all components/services of middle tier or application tier. This script will use Service ControlAPI to start all services which are enabled after checking them in context file (SID_HOSTNAME.xml or CONTEXT_NAME.xml)
ii) adstpall.sh
Master script to stop all components/services of middle tier or application tier.
iii) adalnctl.sh
Script to start / stop apps listener (FNDFS andFNDFS). This listener will file will be in 10.1.2 ORACLE_HOME (i.e. Forms & Reports Home)
listener.ora file will be in $INST_TOP/apps/$CONTEXT_NAME/ora/10.1.2/network/admin directory
(Mostly similar to one in 11i with only change in ORACLE_HOME i.e. from 8.0.6 to 10.1.2)
iv) adapcctl.sh
Script to start/stop Web Server or Oracle HTTP Server. This script uses opmn (Oracle Process Manager and Notification Server) with syntax similar toopmnctl [startstop]proc ohs
like opmnctlstopproc ohs.
(In 11i this script directly used to callapachectl executable but now callsopmnctl whichin turn calls apachectl. In 11i web server oracle home was 1.0.2.2.2 but in R12 its 10.1.3)
v) adcmctl.sh
Script to start / stop concurrent manager, Similar to one in 11i. (This script in turn calls startmgr.sh )
vi) adformsctl.sh
Script to start / stop Forms OC4J from 10.1.3 Oracle_Home. This script will also use opmnctl to start/stop Forms OC4J like
opmnctl stopproc type=oc4jinstancename=forms
vii) adformsrvctl.sh
This script is used only if you wish to start forms in socket mode. Default forms connect method in R12 isservlet.
If started this will start frmsrv executable from 10.1.2 Oracle_Home in Apps R12
viii) adoacorectl.sh
This script will start/stop oacoreOC4J in 10.1.3 Oracle_Home. This scripts will also useopmnctl (similar toadapcctl &adformsctl) to startoacore instance ofOC4J like
opmnctlstartproc type=oc4jinstancename=oacore
ix) adoafmctl.sh
This script will start/stop oafmOC4J in 10.1.3 Oracle_Home. This scripts will also useopmnctl (similar to above) to startoacore instance ofOC4J like
opmnctlstartproc type=oc4jinstancename=oafm
x) adopmnctl.sh
This script will start/stop opmn service in 10.1.3 Oracle_Home. opmn will control all services in 10.1.3 Oracle_Home like web server or variousoc4j instances. If any services are stopped abnormallyopmn will/should start them automatically.
xi) jtffmctl.sh
This script will be used to start/stop one to one fulfilment server.
xii) mwactl.sh
To start / stop mwa telnet server wheremwa is mobile application.
Log File Location for Startup Shutdown Services in R12
———————————————————————-
Log files for startup/shutdown scripts for application/mid tier in R12 are in$INST_TOP/apps/$CONTEXT_NAME/logs/appl/admin/log
(adalnctl.txt,adapcctl.txt,adcmctl.txt,adformsctl.txt,adoacorectl.txt,adoafmctl.txt,adopmnctl.txt,adstrtal.log,jtffmctl.txt )
Control Script Functionality Install Script Functionality Control Script Functionality Node
RDBMS ORACLE_HOME Control scripts
(located under
addbctl.sh
Control database server
addlnctl.sh
Control Oracle Net listener for the database server
RDBMS ORACLE_HOME Install scripts
(located under
adsvdlsn.sh
Start Oracle Net listener during installation
adcrdb.sh
Start database and create database control files
addbprf.sh
Set profile option values
adsvdcnv.sh
Perform character set conversion and licensing tasks
adsvdb.sh
Start database during installation
Application Service Control scripts
(located under
adalnctl.sh
Control Oracle Net8 listener for Applications services
All application tier server nodes
adstrtal.sh
Start all Applications server processes
All application tier server nodes
adstpall.sh
Stop all Applications server processes
All application tier server nodes
adcmctl.sh
Control Concurrent managers
Concurrent processing server node
adapcctl.sh
Control Apache processes
HTTP server node
adopmnctl.sh
Controls Oracle Process Manager
HTTP server node
adoacorectl.sh
Controls Oacore Oc4j Instance
HTTP server node
adformsctl.sh
Controls Forms Oc4j Instance
HTTP server node
adoafmctl.sh
Controls Oafm Oc4j Instance
HTTP server node
jtffmctl.sh
Control Oracle fulfillment server
HTTP server node
==================================================
Instance Home($INST_TOP) Directory Structure
Instance Home contains all the config files, log files, SSL certificates etc.
$INST_TOP/appl/fnd/12.0.0/secure FND_SECURE: The dbc file is located here
$INST_TOP/appl/admin All the env config files are located here
$INST_TOP/logs/ora ($ORA_CONFIG_HOME)
$INST_TOP/logs/ora/10.1.2 ‘C’ Oracle home config, Contains tnsnames and forms listener servlet config files
$INST_TOP/logs/ora/10.1.3 Apache & OC4J config home, Apache, OC4J and opmn. This is the ‘Java’ oracle home configuration for OPMN, Apache and OC4J
==================================================
AD Utility Name | Executable or Script | Description |
---|---|---|
AD Administration | adadmin | Performs maintenance tasks for Oracle E-Business Suite. |
AD Check Digest | adchkdig | Checks the integrity of Oracle E-Business Suite patches downloaded from My Oracle Support. |
AD Configuration | adutconf.sql | Reports standard information about the installed configuration of Oracle E-Business Suite. |
AD Controller | adctrl | Manages parallel workers in AD Administration and AutoPatch. |
AD File Identification | adident | Reports the version and translation level of an Oracle E-Business Suite file. |
AD File Character Set Converter | adncnv | Converts a file from one character set to another. |
AD Merge Patch* | admrgpch | Merges multiple patches into a single merged patch. |
AD Relink | adrelink.sh | Relinks Oracle E-Business Suite executable programs with the Oracle server product libraries. |
AD Splicer | adsplice | Adds off-cycle products. |
AD Job Timing Report | Reports a summary of the timing for jobs run by parallel workers. | |
AutoPatch* | adpatch | Applies patches and other system updates. |
Patch Application Assistant* | admsi.pl | Generates customized installation instructions for a patch. |
Rapid Install** | rapidwiz | Provides a wizard for entering parameters that are specific to a new installation or an upgrade of an Oracle E-Business Suite system. |
Reference:
Oracle Applications(Apps) R12 (12.1.1) Installation on Linux
http://www.freeoraclehelp.com/2011/11/oracle-applicationsapps-r12-1211.html
R12 Instance Home Overview
http://onlineappsdba.com/index.php/2007/10/19/r12-instance-home-overview/
Start-up Shutdown Scripts in Oracle Apps R12
http://onlineappsdba.com/index.php/2007/06/10/start-up-shutdown-scripts-in-oracle-apps-r12/
Oracle E-Business Suite Maintenance Utilities
http://docs.oracle.com/cd/E18727_01/doc.121/e13676/T530334T530337.htm
EBS-r12.1.1安装
http://ebshome.blogspot.jp/2012/06/ebs-r1211.html
http://blog.csdn.net/pan_tian/article/details/7612517

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

MySQL是一种开源的关系型数据库管理系统,主要用于快速、可靠地存储和检索数据。其工作原理包括客户端请求、查询解析、执行查询和返回结果。使用示例包括创建表、插入和查询数据,以及高级功能如JOIN操作。常见错误涉及SQL语法、数据类型和权限问题,优化建议包括使用索引、优化查询和分表分区。

选择MySQL的原因是其性能、可靠性、易用性和社区支持。1.MySQL提供高效的数据存储和检索功能,支持多种数据类型和高级查询操作。2.采用客户端-服务器架构和多种存储引擎,支持事务和查询优化。3.易于使用,支持多种操作系统和编程语言。4.拥有强大的社区支持,提供丰富的资源和解决方案。

可以通过使用 Oracle 的动态 SQL 来根据运行时输入创建和执行 SQL 语句。步骤包括:准备一个空字符串变量来存储动态生成的 SQL 语句。使用 EXECUTE IMMEDIATE 或 PREPARE 语句编译和执行动态 SQL 语句。使用 bind 变量传递用户输入或其他动态值给动态 SQL。使用 EXECUTE IMMEDIATE 或 EXECUTE 执行动态 SQL 语句。

Oracle 中,FOR LOOP 循环可动态创建游标, 步骤为:1. 定义游标类型;2. 创建循环;3. 动态创建游标;4. 执行游标;5. 关闭游标。示例:可循环创建游标,显示前 10 名员工姓名和工资。

AWR 报告是显示数据库性能和活动快照的报告,解读步骤包括:识别活动快照的日期和时间。查看活动、资源消耗的概览。分析会话活动,找出会话类型、资源消耗和等待事件。查找潜在性能瓶颈,如缓慢的 SQL 语句、资源争用和 I/O 问题。查看等待事件,识别并解决它们以提高性能。分析闩锁和内存使用模式,以识别导致性能问题的内存问题。

Oracle 打不开的解决办法包括:1. 启动数据库服务;2. 启动监听器;3. 检查端口冲突;4. 正确设置环境变量;5. 确保防火墙或防病毒软件未阻止连接;6. 检查服务器是否已关闭;7. 使用 RMAN 恢复损坏的文件;8. 检查 TNS 服务名称是否正确;9. 检查网络连接;10. 重新安装 Oracle 软件。

解决 Oracle 游标关闭问题的方法包括:使用 CLOSE 语句显式关闭游标。在 FOR UPDATE 子句中声明游标,使其在作用域结束后自动关闭。在 USING 子句中声明游标,使其在关联的 PL/SQL 变量关闭时自动关闭。使用异常处理确保在任何异常情况下关闭游标。使用连接池自动关闭游标。禁用自动提交,延迟游标关闭。

在 Oracle 中删除所有数据需要以下步骤:1. 建立连接;2. 禁用外键约束;3. 删除表数据;4. 提交事务;5. 启用外键约束(可选)。请务必在执行前备份数据库,以防数据丢失。
