首页 \ 问答 \ 如何设置Oracle默认的优化器

如何设置Oracle默认的优化器

更新时间:2023-04-15 14:04

最满意答案

前面的Fun()
列了之后 ,后面执行的不用Main()
此外,Shell中调用参数是,$1,$2,$3
$# :代表参数的个数;
$@ :代表所有参数
直接使用case 语句来执行后面的参数。下面是Nginx一段启动脚本。前面是函数,后面是调用。
你参考一下。




start() {
 [ -x $Nginx ] || exit 5
 [ -f $Nginx_Conf ] || exit 6
 make_dirs
 echo -n $"Starting $Prog: "
 daemon $Nginx -c $Nginx_Conf
 retval=$?
 echo
 [ $retval -eq 0 ] && touch $lockfile
 return $retval
}
stop() {
 echo -n $"Stopping $Prog: "
 killproc $Prog -QUIT
 retval=$?
 echo
 [ $retval -eq 0 ] && rm -f $lockfile
 return $retval
}
restart() {
 configtest || return $?
 stop
 sleep 1
 start
}
reload() {
 configtest || return $?
 echo -n $"Reloading $Prog: "
 echo
}
force_reload() {
 restart
}
configtest() {
 $Nginx -t -c $Nginx_Conf
}
rh_status() {
 status $Prog
}
rh_status_q() {
 rh_status >/dev/null 2>&1
}
case "$1" in
 start)
 rh_status_q && exit 0
 $1
 ;;
 stop)
 rh_status_q || exit 0
 $1
 ;;
 restart|configtest)
 $1
 ;;
 reload)
 rh_status_q || exit 7
 $1
 ;;
 force-reload)
 force_reload
 ;;
 status)
 rh_status
 ;;
 condrestart|try-restart)
 rh_status_q || exit 0
 ;;
 *)
 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configte
st}"
 exit 2
esac

相关问答

更多
  • 一般以 #!/bin/sh 开头(不是必须要写,但一定要单独一行),指定执行这个脚本的shell程序(也可以用#!/bin/zsh或其他),然后就是堆命令了。Linux的shell脚本支持很多功能,加上Linux高度模块化的命令,完全可以用shell脚本写出复杂的程序。 以上只是简单介绍如何开始写shell脚本,如果要写复杂的脚本,还需要深入学习相关知识(如if——fi、case——esac等结构)。 当然,还需要给脚本加上可执行权限(chmod +x ./file.sh),否则可以用 sh ./file. ...
  • 随便放在哪里都行,linux不靠后缀区分是否可执行。所以任何后缀或没有后缀都可以。但是为了自己识别方便,你可以取一个你熟悉的名字如xx.sh 怎么让他可以执行呢,chmod u+x xx.sh这样你就拥有了执行他的权限。
  • 前面的Fun() 列了之后 ,后面执行的不用Main() 此外,Shell中调用参数是,$1,$2,$3 $# :代表参数的个数; $@ :代表所有参数 直接使用case 语句来执行后面的参数。下面是Nginx一段启动脚本。前面是函数,后面是调用。 你参考一下。 start() { [ -x $Nginx ] || exit 5 [ -f $Nginx_Conf ] || exit 6 make_dirs echo -n $"Starting $Prog: " daemon $Nginx -c $Nginx ...
  • 前面的Fun() 列了之后 ,后面执行的不用Main() 此外,Shell中调用参数是,$1,$2,$3 $# :代表参数的个数; $@ :代表所有参数 直接使用case 语句来执行后面的参数。下面是Nginx一段启动脚本。前面是函数,后面是调用。 你参考一下。 start() { [ -x $Nginx ] || exit 5 [ -f $Nginx_Conf ] || exit 6 make_dirs echo -n $"Starting $Prog: " daemon $Nginx -c $Nginx ...
  • 炒作、恶心、欠Cao不代表个人观点。。我还是挺喜欢Caboo的
  • 1、你好,学习shell脚本主要的难点在于语法较为特殊,而且规定比较严格,需要多看,多练才能熟悉,比如条件判断[ $a -eq 1 ]如果写成[$a -eq 1]就会报错(两边的中括号内部的空格不能少),我以前刚学习shell的时候也是遇到了很多坑,不过在编写了较多的脚本后也就能熟练了 2、如果想学习shell脚本首先要在熟悉linux的基础上学习,因为shell脚本本身就是方便管理员进行设置或者管理开发的,能熟练使用shell就可以大大减轻linux管理的压力; 3、给你一个用shell脚本编写的俄罗斯方 ...
  • 1、Shell俗称壳(用来区别于系统内核 ,如下图所示),是指“提供使用者使用界面”的软件(命令解析器)。它类似于Linux系统中的bash shell,windows系统上的cmd.exe,它接收用户命令,然后调用相应的应用程序。 2、Shell脚本是Shell程序所支持的命令集合或者文本文档 ,是Shell程序所操作的对象。Shell脚本般是是用各类命令预先放入到一个文件中,方便一次性执行的一个程序文件,主要是方便管理员进行设置或者管理用的。
  • 您可以将它放在-vcodec mjpeg之后并将其添加到shell ffmpeg命令中 ffmpeg -i input.mp4 -f null - 2>&1 | grep Duration.... 理想情况下,您应该使用ffprobe input.mp4而不是ffmpeg You can put it after -vcodec mjpeg and add this to the shell ffmpeg command ffmpeg -i input.mp4 -f null - 2>&1 | grep ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)