搜尋
首頁資料庫mysql教程Oracle Apps DBA 常用命令

Oracle Apps DBA 常用命令

Jun 07, 2016 pm 03:02 PM
dbaoracle啟動命令常用資料庫

数据库启动监听 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
    说明: Start/Stop database
    路径: ${ORACLE_HOME}/appsutil/scripts/VIS_ebs121/addbctl.sh
  • 应用层
  • 名称: adalnctl.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
  • AllInOne
  • 名称: adstrtal.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"

    以上就是一些与EBS启动/关闭相关的脚本介绍, 最后如果不希望打开VBox的窗体而通过ssh进行操作的

-------------------------------

查看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 )

==================================================


RDBMS ORACLE_HOME Control scripts
(located under /appsutil/scripts/)

Control Script

Functionality

addbctl.sh Control database server
addlnctl.sh Control Oracle Net listener for the database server


RDBMS ORACLE_HOME Install scripts

(located under /appsutil/install/)

Install Script

Functionality

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 /admin/scripts)

Control Script

Functionality

Node

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/admin/scripts ($ADMIN_SCRIPTS_HOME): All AD scripts are located here
  • $INST_TOP/appl ($APPL_CONFIG_HOME) : For standalone envs, this is set to $APPL_TOP
        $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/certs SSL Certificates go here
  • $INST_TOP/logs LOG_HOME: Central log file location. All log files are placed here (except adconfig)
        $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
  • $INST_TOP/pids  Apache/Forms server PID files are located here
  • $INST_TOP/portal Apache’s DocumentRoot folder
  • ==================================================

    AD Command Line Utilities
    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

    陳述
    本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
    解釋酸的特性(原子,一致性,隔離,耐用性)。解釋酸的特性(原子,一致性,隔離,耐用性)。Apr 16, 2025 am 12:20 AM

    ACID屬性包括原子性、一致性、隔離性和持久性,是數據庫設計的基石。 1.原子性確保事務要么完全成功,要么完全失敗。 2.一致性保證數據庫在事務前後保持一致狀態。 3.隔離性確保事務之間互不干擾。 4.持久性確保事務提交後數據永久保存。

    MySQL:數據庫管理系統與編程語言MySQL:數據庫管理系統與編程語言Apr 16, 2025 am 12:19 AM

    MySQL既是數據庫管理系統(DBMS),也與編程語言緊密相關。 1)作為DBMS,MySQL用於存儲、組織和檢索數據,優化索引可提高查詢性能。 2)通過SQL與編程語言結合,嵌入在如Python中,使用ORM工具如SQLAlchemy可簡化操作。 3)性能優化包括索引、查詢、緩存、分庫分錶和事務管理。

    mySQL:使用SQL命令管理數據mySQL:使用SQL命令管理數據Apr 16, 2025 am 12:19 AM

    MySQL使用SQL命令管理數據。 1.基本命令包括SELECT、INSERT、UPDATE和DELETE。 2.高級用法涉及JOIN、子查詢和聚合函數。 3.常見錯誤有語法、邏輯和性能問題。 4.優化技巧包括使用索引、避免SELECT*和使用LIMIT。

    MySQL的目的:有效存儲和管理數據MySQL的目的:有效存儲和管理數據Apr 16, 2025 am 12:16 AM

    MySQL是一種高效的關係型數據庫管理系統,適用於存儲和管理數據。其優勢包括高性能查詢、靈活的事務處理和豐富的數據類型。實際應用中,MySQL常用於電商平台、社交網絡和內容管理系統,但需注意性能優化、數據安全和擴展性。

    SQL和MySQL:了解關係SQL和MySQL:了解關係Apr 16, 2025 am 12:14 AM

    SQL和MySQL的關係是標準語言與具體實現的關係。 1.SQL是用於管理和操作關係數據庫的標準語言,允許進行數據的增、刪、改、查。 2.MySQL是一個具體的數據庫管理系統,使用SQL作為其操作語言,並提供高效的數據存儲和管理。

    說明InnoDB重做日誌和撤消日誌的作用。說明InnoDB重做日誌和撤消日誌的作用。Apr 15, 2025 am 12:16 AM

    InnoDB使用redologs和undologs確保數據一致性和可靠性。 1.redologs記錄數據頁修改,確保崩潰恢復和事務持久性。 2.undologs記錄數據原始值,支持事務回滾和MVCC。

    在解釋輸出(類型,鍵,行,額外)中要查找的關鍵指標是什麼?在解釋輸出(類型,鍵,行,額外)中要查找的關鍵指標是什麼?Apr 15, 2025 am 12:15 AM

    EXPLAIN命令的關鍵指標包括type、key、rows和Extra。 1)type反映查詢的訪問類型,值越高效率越高,如const優於ALL。 2)key顯示使用的索引,NULL表示無索引。 3)rows預估掃描行數,影響查詢性能。 4)Extra提供額外信息,如Usingfilesort提示需要優化。

    在解釋中使用臨時狀態以及如何避免它是什麼?在解釋中使用臨時狀態以及如何避免它是什麼?Apr 15, 2025 am 12:14 AM

    Usingtemporary在MySQL查詢中表示需要創建臨時表,常見於使用DISTINCT、GROUPBY或非索引列的ORDERBY。可以通過優化索引和重寫查詢避免其出現,提升查詢性能。具體來說,Usingtemporary出現在EXPLAIN輸出中時,意味著MySQL需要創建臨時表來處理查詢。這通常發生在以下情況:1)使用DISTINCT或GROUPBY時進行去重或分組;2)ORDERBY包含非索引列時進行排序;3)使用複雜的子查詢或聯接操作。優化方法包括:1)為ORDERBY和GROUPB

    See all articles

    熱AI工具

    Undresser.AI Undress

    Undresser.AI Undress

    人工智慧驅動的應用程序,用於創建逼真的裸體照片

    AI Clothes Remover

    AI Clothes Remover

    用於從照片中去除衣服的線上人工智慧工具。

    Undress AI Tool

    Undress AI Tool

    免費脫衣圖片

    Clothoff.io

    Clothoff.io

    AI脫衣器

    AI Hentai Generator

    AI Hentai Generator

    免費產生 AI 無盡。

    熱門文章

    R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
    4 週前By尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O.最佳圖形設置
    4 週前By尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O.如果您聽不到任何人,如何修復音頻
    4 週前By尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O.聊天命令以及如何使用它們
    4 週前By尊渡假赌尊渡假赌尊渡假赌

    熱工具

    Atom編輯器mac版下載

    Atom編輯器mac版下載

    最受歡迎的的開源編輯器

    Safe Exam Browser

    Safe Exam Browser

    Safe Exam Browser是一個安全的瀏覽器環境,安全地進行線上考試。該軟體將任何電腦變成一個安全的工作站。它控制對任何實用工具的訪問,並防止學生使用未經授權的資源。

    禪工作室 13.0.1

    禪工作室 13.0.1

    強大的PHP整合開發環境

    SublimeText3 英文版

    SublimeText3 英文版

    推薦:為Win版本,支援程式碼提示!

    記事本++7.3.1

    記事本++7.3.1

    好用且免費的程式碼編輯器