首页 > 其他分享 >oem执行os命令

oem执行os命令

时间:2024-07-18 21:18:58浏览次数:7  
标签:oinstall 20 prdb19 命令 oem oracle -----. os sga

[oracle@prdb19 ~]$ emcli  create_named_credential  -cred_name="hostv1"  -auth_target_type="host"  -cred_type="HostCreds" -attributes="HostUserName:oracle;HostPassword:oracle"
Credential HOSTV1 created.
[oracle@prdb19 ~]$ 
[oracle@prdb19 ~]$ emcli set_preferred_credential   -set_name=HostCredsNormal    -target_name=prdb19  -target_type=host   -credential_name=hostv1 -credential_owner="sysman"
Successfully set preferred credentials for target prdb19:host.





[oracle@prdb19 ~]$ emcli execute_hostcmd -cmd="ls -l;"  -credential_set_name="HostCredsNormal" -targets="prdb19:host;"
*******************************************************************************
* Target: prdb19:host
* Execution Status: Succeeded
*******************************************************************************
total 152
-rw-r-----.  1 oracle oinstall    22 Jul 18 20:56 ag_current_status.msg
-rw-r-----.  1 oracle oinstall   243 Jul 18 20:29 agntstmp.txt
-rw-r-----.  1 oracle oinstall   242 Jul 15 15:09 agntstmp.txt.bak
drwxr-----.  2 oracle oinstall     6 Apr 20 13:02 attachmentDB
drwxr-----.  4 oracle oinstall    35 Apr 20 12:57 backupUpload
-rw-r-----.  1 oracle oinstall     0 Jul 18 20:29 blackouts.lck
-rw-r-----.  1 oracle oinstall    52 Apr 20 12:57 blackouts.xml
drwxr-----.  2 oracle oinstall   252 Jul 18 20:41 collection
drwxr-----.  2 oracle oinstall     6 Apr 20 12:57 collection_upgrade
drwxr-----.  2 oracle oinstall     6 Apr 20 13:01 dumps
-rw-r-----.  1 oracle oinstall  3444 Apr 20 17:46 emagent_storage.config
drwxr-----.  2 oracle oinstall     6 Apr 20 13:01 longOpDiag
drwxr-----.  2 oracle oinstall     6 Apr 20 13:02 metricCache
drwxr-----.  2 oracle oinstall     6 Apr 20 13:02 metricExtLib
drwxr-----.  2 oracle oinstall     6 Apr 20 13:02 remote
drwxr-----. 15 oracle oinstall  4096 Apr 20 16:42 state
-rw-r-----.  1 oracle oinstall 63416 Jul 18 20:29 targets.xml
-rw-r-----.  1 oracle oinstall 63416 Jul 15 15:09 targets.xml.bak
drwxr-----.  2 oracle oinstall     6 Jul 18 20:31 temp
drwxr-----.  4 oracle oinstall    35 Apr 20 12:57 upload

*******************************************************************************
* Execution Summary
*     Targets Succeeded: 1
*         prdb19:host
*     Targets Failed: 0
*******************************************************************************
[oracle@prdb19 ~]$ 




[oracle@prdb19 ~]$ emcli execute_hostcmd -cmd="sh /home/oracle/001.sh;"  -credential_set_name="HostCredsNormal" -targets="prdb19:host;"
*******************************************************************************
* Target: prdb19:host
* Execution Status: Succeeded
*******************************************************************************
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jul 18 21:01:12 2024
Version 19.23.0.0.0
Copyright (c) 1982, 2023, Oracle.  All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.23.0.0.0
SQL> 
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
allow_group_access_to_sga            boolean     FALSE
lock_sga                             boolean     FALSE
pre_page_sga                         boolean     TRUE
sga_max_size                         big integer 8000M
sga_min_size                         big integer 0
sga_target                           big integer 8000M
unified_audit_sga_queue_size         integer     1048576
SQL> Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.23.0.0.0
*******************************************************************************
* Execution Summary
*     Targets Succeeded: 1
*         prdb19:host
*     Targets Failed: 0
*******************************************************************************
[oracle@prdb19 ~]$ 





[oracle@prdb19 ~]$ emcli execute_hostcmd -input_file="FILE:/home/oracle/001.sh"  -credential_set_name="HostCredsNormal" -targets="prdb19:host;"  -osscript="FILE"  -cmd="/bin/sh -s" 
*******************************************************************************
* Target: prdb19:host
* Execution Status: Succeeded
*******************************************************************************

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jul 18 21:03:40 2024
Version 19.23.0.0.0
Copyright (c) 1982, 2023, Oracle.  All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.23.0.0.0

SQL> 
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
allow_group_access_to_sga            boolean     FALSE
lock_sga                             boolean     FALSE
pre_page_sga                         boolean     TRUE
sga_max_size                         big integer 8000M
sga_min_size                         big integer 0
sga_target                           big integer 8000M
unified_audit_sga_queue_size         integer     1048576
SQL> Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.23.0.0.0
*******************************************************************************
* Execution Summary
*     Targets Succeeded: 1
*         prdb19:host
*     Targets Failed: 0
*******************************************************************************
[oracle@prdb19 ~]$ 

 

标签:oinstall,20,prdb19,命令,oem,oracle,-----.,os,sga
From: https://www.cnblogs.com/notonlydba/p/18310461

相关文章

  • centos6忘记root密码,进入单用户修改
    1、开机按任意键进入启动菜单,如下2、按a或e进入grub界面3、选中内核按e进入内核编辑模式4、输入1或者是S或者s或者single,然后按enter回车键5、按enter回到启动菜单后,按b进入系统6、进入系统后,输入passwd修改密码......
  • XGBoost模型构建+SHAP解析-Python代码——用XGBoost模型实现机器学习并进行黑箱过程解
    一、XGBoost模型简介1.1适用范围XGBoost(ExtremeGradientBoosting)是一个基于梯度提升(GradientBoosting)框架的增强算法,广泛应用于分类、回归、排序等任务。常见的应用包括:信用风险评估销售预测病毒检测图像识别1.2原理XGBoost是梯度提升树(GradientBoostedDecisionTree......
  • iOS开发基础133-GCD相关
    先看一段代码,这是项目中图片上传的一部分代码。//开启线程组上传图片dispatch_group_tgroup=dispatch_group_create();[self.selectedPhotosenumerateObjectsUsingBlock:^(UIImage*_Nonnullobj,NSUIntegeridx,BOOL*_Nonnullstop){dispatch_gro......
  • 将DevEcoStudio进行汉化
    1、点击最上方菜单栏中的file,然后选择setting2、在弹出的窗口的左侧菜单栏中选择Plugins,然后在右侧选择Installed3、由于汉化插件已经给我们下载好了,所以直接在搜索框输入Chinese,然后勾选,点击Apply,之后点击ok4、然后选择Restart重启编译器即可5、再次进入后页面的内容......
  • [php命令执行函数]详解各种php命令执行函数
    如下几种命令执行函数:目录systemexcpassthrushell_exec反引号``popensystemsystem函数简介:用于执行命令语法形式:system(string$command,int$return_var=?)command:必选参数,字符类型,被system函数执行的命令,如lsreturn_var:可选参数,整数类型,如果提供此参数,则com......
  • 操作系统发展简史(Unix/Linux 篇 + DOS/Windows 篇)+ Mac 与 Microsoft 之风云争霸
    操作系统发展简史(Unix/Linux篇)说到操作系统,大家都不会陌生。我们天天都在接触操作系统——用台式机或笔记本电脑,使用的是windows和macOS系统;用手机、平板电脑,则是android(安卓)和iOS系统。如果是从事信息通信行业,还经常会和ubuntu、CentOS、Fedora这样的Linux......
  • unity3d get post请求
    unity3dget post请求 usingUnityEngine;usingUnityEngine.Networking;publicclassNetworkRequestExample:MonoBehaviour{IEnumeratorStart(){stringurl="https://api.example.com/data";UnityWebRequestrequest=U......
  • docker镜像常用命令
    1.使用"ls"查看镜像列表dockerimagels查看现有的镜像列表。dockerimagels-q仅查看镜像的ID信息。dockerimagels-a查看所有的镜像,包括中间镜像,尤其是在后期查看基于dockerfile的时候很有用呢2.使用"pull"拉取镜像dockerimagepullbus......
  • 1.java编写命令
    #六java编写命令**第一步:先写注释(需求、思路),进行需求分析和设计**```需求:定义一个helloword小程序思路: 1.通过class关键字定义一个类,将代码编写到该类中 2.为了保证该类的独立运行,在类定义个主函数,格式publicstaticvoidmain{String[]args} 3.保存成一个扩展名为ja......
  • 模型训练中出现loss为NaN怎么办?
    文章目录一、模型训练中出现loss为NaN原因1.学习率过高2.梯度消失或爆炸3.数据不平衡或异常4.模型不稳定5.过拟合二、针对梯度消失或爆炸的解决方案1.使用`torch.autograd.detect_anomaly()`2.使用torchviz可视化计算图3.检查梯度的数值范围4.调整梯度剪裁......