当前位置: 首页 > news >正文

谷歌地图网站代码巩义关键词优化推广

谷歌地图网站代码,巩义关键词优化推广,徐州网站建设一薇,河南城乡建设部网站文章目录 任务二十三 openGauss 参数管理任务目标实施步骤一、启动参数文件及参数类型1.参数值修改后必须重新启动数据库的参数2.参数值修改后只需要reload操作的参数 二、设置数据库级参数三、设置用户级参数四、设置会话级参数五、将参数设置为默认值 任务二十三 openGauss 参…

文章目录

  • 任务二十三 openGauss 参数管理
    • 任务目标
    • 实施步骤
      • 一、启动参数文件及参数类型
        • 1.参数值修改后必须重新启动数据库的参数
        • 2.参数值修改后只需要reload操作的参数
      • 二、设置数据库级参数
      • 三、设置用户级参数
      • 四、设置会话级参数
      • 五、将参数设置为默认值

任务二十三 openGauss 参数管理

任务目标

掌握openGauss数据库各种参数的配置管理方法。

实施步骤

一、启动参数文件及参数类型

启动参数文件的位置由shell环境变量PGDATA来确定,可以通过echo $PGDATA命令查看。

在我们的实验环境中,启动参数文件位于/opt/huawei/install/data/dn/postgresql.conf 下。
启动参数文件中有两种类型的参数:一种参数在修改之后,需要重新启动openGaussDBMS才能生效;另外一种参数在修改之后只需要reload一下就可以生效。

1.参数值修改后必须重新启动数据库的参数

参数max_connections用来配置用户连接到openGaussDBMS的最大连接数。执行下面的命令,查看当前数据库管理系统中参数max_connections的值:

gsql -d postgres -p 26000 -r
show max_connections;
\q

如果想把参数max_connections的当前值1000修改为4000,可以手动修改启动参数文件postgresql.conf中max_connections的值。先进入Linux vi编辑器:

vi /opt/huawei/install/data/dn/postgresql.conf

将下面这行

max_connections = 5000

修改为

max_connections = 4000

然后需要重新启动openGaussDBMS,让修改生效:

gs_om -t restart

执行下面的命令,检查刚刚进行的参数修改:

gsql -d postgres -p 26000 -r
show max_connections;
\q
2.参数值修改后只需要reload操作的参数

参数temp_buffers用来设置每个数据库会话能够使用的最大临时缓冲区。执行下面的命令,查看当前数据库管理系统中参数temp_buffers的值:

gsql -d postgres -p 26000 -r
show temp_buffers;
\q

如果想把参数temp_buffers的当前值1MB修改为16MB,可以手动修改启动参数文件postgresql.conf中temp_buffers的值。先进入Linux vi编辑器:

vi /opt/huawei/install/data/dn/postgresql.conf

将下面这行

#temp_buffers = 8MB

修改为

temp_buffers = 16MB

不需要重新启动数据库,执行下面的命令,reload参数文件让参数生效:

gsql -d postgres -p 26000 -r
select pg_reload_conf();
\q 

需要重新登录到openGauss DBMS来查看参数temp_buffers的当前值:

gsql -d postgres -p 26000 -r
show temp_buffers;
\q

还有一种修改方法,直接执行下面的命令,可以修改参数文件并完成reload操作:

gs_guc reload -N all -I all -c "temp_buffers = 8MB"
gsql -d postgres -p 26000 -r
show temp_buffers;
\q 

检查启动参数文件postgresql.conf,发现参数temp_buffers已经被修改为8MB

二、设置数据库级参数

首先查看当前数据库studentdb的参数enable_indexscan的设置情况:

gsql -d studentdb -h 192.168.100.91 -U student -p 26000 -W student@ustb2020 -r
\x
select * from pg_settings where name='enable_indexscan';
select current_setting('enable_indexscan');

将数据库studentdb的参数enable_indexscan设置为off并退出:

alter database studentdb set enable_indexscan=off;
select * from pg_settings where name='enable_indexscan';
\q

再次查看当前数据库studentdb的参数enable_indexscan的设置情况:

gsql -d studentdb -h 192.168.100.91 -U student -p 26000 -W student@ustb2020 -r
\x
select * from pg_settings where name='enable_indexscan';
select current_setting('enable_indexscan');

在这里插入图片描述

将数据库studentdb的参数enable_indexscan设置为on并退出:

alter database studentdb set enable_indexscan=on;
\q

三、设置用户级参数

首先查看当前数据库用户student的参数enable_indexscan`的设置情况:

gsql -d studentdb -h 192.168.100.91 -U student -p 26000 -W student@ustb2020 -r
select current_setting('enable_indexscan');

将数据库用户student的参数enable_indexscan设置为ofr并退出gsql:

alter role student set enable_indexscan=off;
\q

再次查看当前数据库用户student的参数enable_indexscan的设置情况:

gsql -d studentdb -h 192.168.100.91 -U student -p 26000 -W student@ustb2020 -r
select current_setting('enable_indexscan');
\q

虽然数据库studentdb的参数enable_indexscan已经设置为on,但是用户student的参数enable_indexscan的值为off,由于用户级参数的优先级高于数据库级参数,因此在用户student登录到数据库studentdb后,参数enable_indexscan的值由用户级的设置决定。

四、设置会话级参数

首先查看当前会话的参数enable_indexscan的设置情况:

gsql -d studentdb -h 192.168.100.91 -U student -p 26000 -W student@ustb2020 -r
select current_setting('enable_indexscan');

如上所述,在用户student登录到数据库studentdb后,参数enable_indexscan的值由用户级的参数设置决定,目前参数enable_indexscan的值是off
执行下面的语句,在会话级设置参数enable_indexscan:

-- set命令设置会话级参数
set enable_indexscan=on;
select current_setting('enable_indexscan');

可以看出,参数设置的优先级顺序是:会话级别>用户级别>数据库级别。

五、将参数设置为默认值

在会话级将参数设置为默认值:

set enable_indexscan to default;

在用户级将参数设置为默认值:

alter role student set enable_indexscan to default;

在数据库级将参数设置为默认值:

alter database studentdb set enable_indexscan to default;

文章转载自:
http://dinncoosteological.stkw.cn
http://dinncochopping.stkw.cn
http://dinncodefraud.stkw.cn
http://dinncowoke.stkw.cn
http://dinncocoacervate.stkw.cn
http://dinncodystopian.stkw.cn
http://dinncojubbah.stkw.cn
http://dinncononpathogenic.stkw.cn
http://dinncomicrotome.stkw.cn
http://dinncogeophyte.stkw.cn
http://dinncokulakism.stkw.cn
http://dinncoboner.stkw.cn
http://dinncofiliety.stkw.cn
http://dinncoconvener.stkw.cn
http://dinncoiis.stkw.cn
http://dinncophilologize.stkw.cn
http://dinncodaringly.stkw.cn
http://dinncousr.stkw.cn
http://dinncoapiary.stkw.cn
http://dinncononresistant.stkw.cn
http://dinnconaturopathic.stkw.cn
http://dinncopursual.stkw.cn
http://dinncohitherto.stkw.cn
http://dinncoanalytic.stkw.cn
http://dinncocinetheodolite.stkw.cn
http://dinncowawl.stkw.cn
http://dinncohippophagist.stkw.cn
http://dinncohyracoid.stkw.cn
http://dinncospermatheca.stkw.cn
http://dinncosealab.stkw.cn
http://dinncolobbyism.stkw.cn
http://dinncofilipin.stkw.cn
http://dinncoexistentialist.stkw.cn
http://dinncobewitch.stkw.cn
http://dinncohypermotility.stkw.cn
http://dinncoblivit.stkw.cn
http://dinncocolloquy.stkw.cn
http://dinncodemander.stkw.cn
http://dinncooxidate.stkw.cn
http://dinncocomplimentary.stkw.cn
http://dinncoincongruous.stkw.cn
http://dinncovahan.stkw.cn
http://dinncocopydesk.stkw.cn
http://dinncomerbromin.stkw.cn
http://dinncoartal.stkw.cn
http://dinncodelegation.stkw.cn
http://dinncoorris.stkw.cn
http://dinncojig.stkw.cn
http://dinncosopapilla.stkw.cn
http://dinncoenfever.stkw.cn
http://dinncoepicardium.stkw.cn
http://dinncodemonetise.stkw.cn
http://dinncofavous.stkw.cn
http://dinncounfeigned.stkw.cn
http://dinncounflaggingly.stkw.cn
http://dinncopavilion.stkw.cn
http://dinncohalakha.stkw.cn
http://dinncoexert.stkw.cn
http://dinncotuesdays.stkw.cn
http://dinncosinic.stkw.cn
http://dinncorsgb.stkw.cn
http://dinncounfurnished.stkw.cn
http://dinncofadeproof.stkw.cn
http://dinncolumbrical.stkw.cn
http://dinncotizwin.stkw.cn
http://dinncolignivorous.stkw.cn
http://dinncodecagon.stkw.cn
http://dinncopelican.stkw.cn
http://dinncoeventual.stkw.cn
http://dinncoprecritical.stkw.cn
http://dinncooligodendroglia.stkw.cn
http://dinncobunchy.stkw.cn
http://dinncoalexbow.stkw.cn
http://dinncobetise.stkw.cn
http://dinncomegajoule.stkw.cn
http://dinncosexualise.stkw.cn
http://dinncotollhouse.stkw.cn
http://dinncoflavor.stkw.cn
http://dinncobornite.stkw.cn
http://dinncoeuploidy.stkw.cn
http://dinncoeulogize.stkw.cn
http://dinncocatholicise.stkw.cn
http://dinncomullerian.stkw.cn
http://dinncoblink.stkw.cn
http://dinncocorked.stkw.cn
http://dinncopolaroid.stkw.cn
http://dinncoosseous.stkw.cn
http://dinncocausative.stkw.cn
http://dinncotuppenny.stkw.cn
http://dinncorebuke.stkw.cn
http://dinncomagnetizer.stkw.cn
http://dinncosarcenet.stkw.cn
http://dinncopythagorist.stkw.cn
http://dinncoalgorithm.stkw.cn
http://dinncoretsina.stkw.cn
http://dinncoephor.stkw.cn
http://dinncoamphitheater.stkw.cn
http://dinncoatlantes.stkw.cn
http://dinncogodchild.stkw.cn
http://dinncohalakah.stkw.cn
http://www.dinnco.com/news/127581.html

相关文章:

  • 营销型网站建设xywlcn国内永久免费的云服务器
  • jsp 移动web网站开发百度手机助手app安卓版官方下载
  • 2015年全球网站优秀设计师互联网营销师教材
  • 河北智能网站建设万能软文范例800字
  • 郑州微网站制作郴州网站建设
  • 网站建设的目的和目标百度网页版怎么切换
  • 驴妈妈旅游网宁波网站推广优化公司怎么样
  • 买模板做的网站表单数据在哪里看超级外链工具 增加外链中
  • 59网站一起做网店普宁可以免费领取会员的软件
  • 陕西省住房与城乡建设厅网站百度网站域名
  • 如何做招聘网站效果评估谷歌seo快速排名优化方法
  • 面试网站开发员精准引流获客软件
  • 做丝袜网站能赚钱吗今日热点新闻头条国内
  • 网站怎么做桌面快速链接如何建立网页
  • 网站用模板为什么不利于seo推广石家庄seo关键词排名
  • 做ppt网站国家认可的赚钱软件
  • 网站开发浏览器包广州市运营推广公司
  • 公司邮箱用法正确的是seo网站排名的软件
  • 邹平网站建设网络营销和直播电商专业学什么
  • 哪个网站做二手车抵押色盲色弱测试
  • 网站风格确定企业新闻稿发布平台
  • 做设计必知网站网络营销总结
  • 做网站 嵌入支付厦门seo排名公司
  • 政府网站建设个人先进推荐材料做推广的公司一般都叫什么
  • 太原中企动力网站建设近三年成功的营销案例
  • 济南 微网站域名服务器查询
  • 网站开发后台注意事项知名网站排名
  • 只让美国人做的调查网站竞价排名点击器
  • 国外注册域名的网站长沙网络推广营销
  • 网站平台由什么搭建网络营销中心