<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 - 达梦</title>
    <link>http://bbs.cqsztech.com/forum.php?mod=forumdisplay&amp;fid=75</link>
    <description>Latest 20 threads of 达梦</description>
    <copyright>Copyright(C) 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 07 Jun 2026 06:39:00 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://bbs.cqsztech.com/static/image/common/logo_88_31.gif</url>
      <title>重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛</title>
      <link>http://bbs.cqsztech.com/</link>
    </image>
    <item>
      <title>再次查看达梦SQL的执行计划</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32916</link>
      <description><![CDATA[]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Wed, 05 Nov 2025 07:25:21 +0000</pubDate>
    </item>
    <item>
      <title>达梦DM8数据库如何修改参数</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32868</link>
      <description><![CDATA[比如，我们想修改 某个参数 drop_cascade_view ，在删除表时，级联删除视图，该如何做？

1.先看看当前参数值
   SQL&gt; show parameter drop_cascade

行号       PARA_NAME         PARA_VALUE
---------- ----------------- ----------
1          DROP_CASCADE ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Thu, 23 Oct 2025 02:26:23 +0000</pubDate>
    </item>
    <item>
      <title>如何通过SQL语句查询某个模式的拥有者</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32853</link>
      <description><![CDATA[比如我使用sysdba用户登录创建了一个模式，并授权给SZ

CREATE SCHEMA XX AUTHORIZATION SZ ;

这个时候，我想看看XX模式的拥有者是谁？

通过DM管理工具，很方便查询：




如果要使用数据字典查询，该如何查询呢？
感觉达梦这点查询，要复杂一些，

可 ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Thu, 16 Oct 2025 02:48:13 +0000</pubDate>
    </item>
    <item>
      <title>达梦数据库是如何来体现数据库原理中的两级映像</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32794</link>
      <description><![CDATA[达梦数据库通过以下方式体现数据库原理中的两级映像：

外模式 / 模式映像体现
[*] 外模式与模式的设置及关联：
达梦数据库支持创建多种视图（可视为外模式的一种体现形式），视图是从一个或多个基本表（对应着数据库的模式中定义的表结构等逻辑内容）中导出的虚 ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Thu, 18 Sep 2025 01:14:35 +0000</pubDate>
    </item>
    <item>
      <title>达梦dm8显示数据库参数值</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32530</link>
      <description><![CDATA[show parameter enable_au;

SQL&gt; show parameter enable_au

行号       PARA_NAME    PARA_VALUE
---------- ------------ ----------
1          ENABLE_AUDIT 0
SQL&gt;


或者：

SQL&gt; select para_name,para_value from v$dm_ini where para_name like  ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Wed, 11 Jun 2025 16:50:44 +0000</pubDate>
    </item>
    <item>
      <title>DM8数据库执行授权any 权限报错：5567 授权者没有这个权限</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32528</link>
      <description><![CDATA[执行 grant create ANY TABLE to staff_user;  报错：
5567 授权者没有这个权限
，见下图


原因是，ENABLE_DDL_ANY_PRIV 参数为0 ，导致不允许执行 any 授权。



修改后：
设置ENABLE_DDL_ANY_PRIV=1后重新授权即可：
sp_set_para_value(1,\'ENABLE_DDL_ANY ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Wed, 11 Jun 2025 01:57:22 +0000</pubDate>
    </item>
    <item>
      <title>如何查找DM8中的事务</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32526</link>
      <description><![CDATA[select * from v$trx结果中找到事务对应的会话SESS_ID，通过下面sql查询会话的详细信息select * from v$sessions where sess_id = SESS_ID]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Mon, 09 Jun 2025 22:59:24 +0000</pubDate>
    </item>
    <item>
      <title>DAYOFWEEK(date) 函数详解</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32517</link>
      <description><![CDATA[DAYOFWEEK(date) 函数详解
DAYOFWEEK(date) 是一个用于从日期或日期时间表达式中提取星期几数字表示的日期和时间函数。它在数据分析、报告生成、时间序列处理、事件调度以及各种需要基于星期几进行分类和计算的场景中非常实用。通过 DAYOFWEEK 函数，用户可以轻松地获 ...]]></description>
      <category>达梦</category>
      <author>刘泽宇</author>
      <pubDate>Sun, 08 Jun 2025 02:04:13 +0000</pubDate>
    </item>
    <item>
      <title>RAISE_APPLICATION_ERROR函数</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32516</link>
      <description><![CDATA[通常用户自定义异常是在声明后才能产生，但如果我们使用RAISE_APPLICATION_ERROR函数就可以直接产生异常，并且能为异常定义用户自己指定的错误信息。执行完RAISE_APPLICATION_ERROR函数后，控制权转到块外的调用环境。

RAISE_APPLICATION_ERROR的定义如下所示：

R ...]]></description>
      <category>达梦</category>
      <author>刘泽宇</author>
      <pubDate>Sun, 08 Jun 2025 01:49:15 +0000</pubDate>
    </item>
    <item>
      <title>数据库四大特性及数据库隔离级别</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32497</link>
      <description><![CDATA[如果想要说明一个数据库或者一个框架支持事务性操作，则必须要满足下面的四大特性1. 原子性（Atomicity）原子性是指事务包含的所有操作要么全部成功，要么全部失败回滚。失败回滚的操作事务，将不能对事物有任何影响。2. 一致性（Consistency）一致性是指事务必须使数据 ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Sun, 01 Jun 2025 08:50:30 +0000</pubDate>
    </item>
    <item>
      <title>SQLLARK中的SQL格式化功能</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32493</link>
      <description><![CDATA[如果没有登录数据库，这个SQL格式化功能不起作用，一点连接到数据库，再去点格式化，就可以了。




看到已经优化了。]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Sat, 31 May 2025 05:03:47 +0000</pubDate>
    </item>
    <item>
      <title>达梦创建的过程函数在dba_procedures中查找</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32492</link>
      <description><![CDATA[我们通过create or replace procedure xx方式创建的函数过程，可以通过 user_procedures中查找，不过，是使用 object_name=\'xx\'方式查找，不是使用 procedure_name like \'xx\'查找

比如：


SQL&gt; set schema sch_factory;
操作已执行
已用时间: 0.582(毫秒). 执 ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Sat, 31 May 2025 04:35:17 +0000</pubDate>
    </item>
    <item>
      <title>达梦数据库和ORACLE数据库切换模式的区别？</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32484</link>
      <description><![CDATA[ORACLE要切换模式：

alter session set current_schema=hr;

达梦数据库切换模式：

set schema hr;]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Sun, 25 May 2025 09:04:33 +0000</pubDate>
    </item>
    <item>
      <title>达梦8全文检索索引的创建，检索，删除</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32460</link>
      <description><![CDATA[1.给 经理表的备注字段建立一个全文检索索引，使用中文最多分词

   CREATE CONTEXT INDEX FTINDEX_MANAGER_REMARK ON SCH_FACTORY.MANAGER(备注) LEXER CHINESE_FP_LEXER;
2.检查索引情况
   select index_name,index_type,uniqueness
from DBA_INDEXES 
WHERE ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Wed, 21 May 2025 04:37:20 +0000</pubDate>
    </item>
    <item>
      <title>达梦数据库执行计划各名字是什么含义</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32453</link>
      <description><![CDATA[NSET2:结果集(result set)收集，一般是查询计划的顶层节点
PRJT2:关系的“投影”(project)运算，用于选择表达式项的计算；广泛用于查询，排序，函数索引创建等
AAGR2：简单聚集
说明：用于没有group by的count，sum，age，max，min等聚集函数的计算。
SLCT2:关系的 ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Sat, 17 May 2025 14:42:59 +0000</pubDate>
    </item>
    <item>
      <title>达梦DM8数据库如何显示当前默认模式是什么？</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32445</link>
      <description><![CDATA[有两种方式：

SQL&gt; SELECT SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID);

行号       SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID)
---------- ---------------------------------------
1          SCH_FACTORY

已用时间: 4.853(毫秒). 执行号:7010.


或者： ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Wed, 14 May 2025 11:13:30 +0000</pubDate>
    </item>
    <item>
      <title>达梦DM8数据库如何切换默认模式</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32444</link>
      <description><![CDATA[比如当前使用SYSDBA登录进入后，想切换到SCH_FACTORY模式

set schema sch_factory;



SQL&gt; set schema sch_factory
2   ;
操作已执行
已用时间: 0.394(毫秒). 执行号:0.
SQL&gt; select * from dept;

行号       部门号      部门名       经理号
-------- ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Wed, 14 May 2025 11:11:30 +0000</pubDate>
    </item>
    <item>
      <title>达梦DM8数据库如何显示当前登录用户是谁</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32443</link>
      <description><![CDATA[可以使用以下语句完成：

SQL&gt; select sys_context(\'USERENV\',\'CURRENT_USER\');

行号       SYS_CONTEXT(\'USERENV\',\'CURRENT_USER\')
---------- -------------------------------------
1          SYSDBA

已用时间: 0.837(毫秒). 执行号:7011.
SQL&gt;]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Wed, 14 May 2025 11:08:53 +0000</pubDate>
    </item>
    <item>
      <title>如何查看达梦SQL语句的执行计划</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32442</link>
      <description><![CDATA[SQL&gt; explain select * from dept;

1   #NSET2: [1, 3, 68]
2     #PRJT2: [1, 3, 68]; exp_num(4), is_atom(FALSE)
3       #CSCN2: [1, 3, 68]; INDEX33555649(DEPT); btr_scan(1)

已用时间: 0.536(毫秒). 执行号:0.

或者

SQL&gt; set autotrace on;
SQL&gt; ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Wed, 14 May 2025 10:54:49 +0000</pubDate>
    </item>
    <item>
      <title>达梦8数据库如何获取AWR报告</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=32426</link>
      <description><![CDATA[相信搞过ORACLE数据库的，一定对AWR不陌生，作为最像ORACLE的数据库，是否有AWR呢？
答案是肯定的。

下面以一个实例例子来演示

1.创建DBMS_WORKLOAD_REPOSITORY系统包

[*]查看DBMS_WORKLOAD_REPOSITORY系统包启用状态
SQL&gt; SELECT sf_check_awr_sys;

行号 ...]]></description>
      <category>达梦</category>
      <author>郑全</author>
      <pubDate>Fri, 09 May 2025 07:13:17 +0000</pubDate>
    </item>
  </channel>
</rss>