oracle文档集锦(1)

基于matlab的CNN食物识别分类系统,matlab深度学习分类,训练+数据集+界面 饮食在人们的日常生活、营养与医疗建议以及运动员等专业人士的训练上起着越来越重要的作用。随着互联网的发展和医学的进步,人们普遍上传分享和记录的食物图像形成了非常多的数据库,为了改善饮食结构,塑造更健康的生活方式,分析食物的种类、热量和进食时间成为了营养学上非常重要的研究方法,本文的使用深度学习算法可以根据用户上传的食物图像自动分析食物种类。深度学习是机器学习领域的一个研究方向。深度学习通过对数据特征的学习将原始数据转化为计算机可以理解的抽象数据,根据学习到的特征,可以对原始数据进行检测或分类。 阅读详情
EXPIMP--從實驗中來看exp,imp之間的規則

HOWTO--如何在10g不支持的Linux版本安装10g

HOWTO--讓Linux下的oracle自動啟動

SQL--收集网上的一些精妙的SQL的例子(ZT)

EXP-IMP--在8i中的中文说明

英文版的STATSPACK Readme

EXPIMP--從實驗中來看exp,imp之間的規則

发表人:vongates | 发表时间: 2005年七月15日, 06:41
從下面的測試結果中可以看出exp,imp在不同版本中相互之間的關系:

源库 目标库 exp版本 exp成功? imp版本 imp成功?
8.1.7.0 9.2.0.1 8.1.7.0 成功 8.1.7.0 成功
8.1.7.0 9.2.0.1 8.1.7.0 成功 9.2.0.1 成功
8.1.7.0 9.2.0.1 9.2.0.1 失败(ORA-00942)

9.2.0.1 8.1.7.0 8.1.7.0 成功 8.1.7.0 成功
9.2.0.1 8.1.7.0 8.1.7.0 成功 9.2.0.1 失败(ORA-00942、IMP-00023)
9.2.0.1 8.1.7.0 9.2.0.1 成功 8.1.7.0 失败(IMP-00010)
9.2.0.1 8.1.7.0 9.2.0.1 成功 9.2.0.1 失败(ORA-00942、IMP-00023)

8.1.7.0 8.1.7.0 8.1.7.0 成功 8.1.7.0 成功
8.1.7.0 8.1.7.0 8.1.7.0 成功 9.2.0.1 失败(ORA-00942、IMP-00023)
8.1.7.0 8.1.7.0 9.2.0.1 失败(ORA-00942)

9.2.0.1 9.2.0.1 8.1.7.0 成功 8.1.7.0 成功
9.2.0.1 9.2.0.1 8.1.7.0 成功 9.2.0.1 成功
9.2.0.1 9.2.0.1 9.2.0.1 成功 8.1.7.0 失败(IMP-00010)
9.2.0.1 9.2.0.1 9.2.0.1 成功 9.2.0.1 成功

规则:

1、 imp工具的版本应该和目标数据库的版本一致;
2、 exp工具的版本应该与源数据库和目标数据库中版本最低的一个相一致;

原文地址:http://vongates.itpub.net/post/2553/35118


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


HOWTO--如何在10g不支持的Linux版本安装10g

发表人:vongates | 发表时间: 2005年五月13日, 06:18
隨著10G的被更多的人了解,研究,我們知道并不是所有的Linux發行版本都被Oracle認証過。如果我們在沒有被Oracle認証過的發行版上做10G的安裝,我們需做一些修改才可以正常的安裝,因為在安裝前Oracle會做一次自檢的動作。目前10G支持的Linux發行版本有:redhat-2.1, redhat-3, SuSE-9, SuSE-8 or UnitedLinux-1.0,如果我們的Linux版本不在前面的列表中,則可以通過下面的方法來解決



1). 在运行runInstaller 時加上(-ignoreSysPrereqs)flag來跳过检查.

  $runInstaller -ignoreSysPrereqs &


2). 修改/etc/redhat-release文件:(以RHEL3為例)

#su - root  #cp /etc/redhat-release /etc/redhat-release.backup  #cat > /etc/redhat-release <<   EOF  Red Hat Enterprise Linux AS release 3 (Taroon)  EOF  
安装完毕,再恢復到原來的版本:
#su - root  #cp /etc/redhat-release.backup /etc/redhat-release  

oracle文档集锦(1) - hhrz - hhrz的博客 雙看到一種方法


這種方法沒有用過。不過看上去也是可行的
這是Fenng第一次提到的
我们可以去修改Oracle 的install/oraparam.ini文件:

[Certified Versions]
Linux=redhat-2.1,UnitedLinux-1.0,redhat-3

把这个屏蔽掉,或者是添加新的内容:

[Certified Versions]
Linux=redhat-2.1,UnitedLinux-1.0,redhat-3

[Linux-redhat-2.1-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[UnitedLinux-1.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-redhat-3.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

对这个地方定制一下应该就可以了


vongates | 13/05/2005, 07:00


原文地址:http://vongates.itpub.net/post/2553/29605

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

HOWTO--讓Linux下的oracle自動啟動

发表人:vongates | 发表时间: 2005年五月06日, 08:51
當我們在Linux下安裝Oracle是不會自動啟動的,我們要做如何改變就可以實現,下面我們來看一下
修改/etc/oratab将
*:/opt/oracle/product/9.2:N
orcl:/opt/oracle/product/9.2:N
修改为Y

root身份
#vi /etc/rc.local 加入
su - oracle -c 'lsnrctl start'
su - oracle -c 'dbstart'



原文地址:http://vongates.itpub.net/post/2553/28723


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

SQL--收集网上的一些精妙的SQL的例子(ZT)

发表人:vongates | 发表时间: 2005年四月22日, 06:29
收集网上的一些精妙的SQL的例子

说明:复制表(只复制结构,源表名:a 新表名:b)
SQL: select * into b from a where 1<>1

说明:拷贝表(拷贝数据,源表名:a 目标表名:b)
SQL: insert into b(a, b, c) select d,e,f from b;

说明:显示文章、提交人和最后回复时间
SQL: select a.title,a.username,b.adddate from table a,(select max(adddate) adddate from table where table.title=a.title) b

说明:外连接查询(表名1:a 表名2:b)
SQL: select a.a, a.b, a.c, b.c, b.d, b.f from a LEFT OUT JOIN b ON a.a = b.c

说明:日程安排提前五分钟提醒
SQL: select * from 日程安排 where datediff('minute',f开始时间,getdate())>5

说明:两张关联表,删除主表中已经在副表中没有的信息
SQL: delete from info where not exists ( select * from infobz where info.infid=infobz.infid )

说明:--
SQL:
SELECT A.NUM, A.NAME, B.UPD_DATE, B.PREV_UPD_DATE
  FROM TABLE1,
    (SELECT X.NUM, X.UPD_DATE, Y.UPD_DATE PREV_UPD_DATE
    FROM (SELECT NUM, UPD_DATE, INBOUND_QTY, STOCK_ONHAND
   FROM TABLE2
  WHERE TO_CHAR(UPD_DATE, 'YYYY/MM') =
  TO_CHAR(SYSDATE, 'YYYY/MM')) X,
   (SELECT NUM, UPD_DATE, STOCK_ONHAND
   FROM TABLE2
  WHERE TO_CHAR(UPD_DATE, 'YYYY/MM') =
  TO_CHAR(TO_DATE(TO_CHAR(SYSDATE, 'YYYY/MM') || '/01',
   'YYYY/MM/DD') - 1,
    'YYYY/MM')) Y,
   WHERE X.NUM = Y.NUM
   (+)
  AND X.INBOUND_QTY + NVL(Y.STOCK_ONHAND, 0) <> X.STOCK_ONHAND) B
 WHERE A.NUM = B.NUM

说明:--

SQL:

select * from studentinfo where not exists(select * from student where studentinfo.id=student.id) and 系名称='"&strdepartmentname&"' and 专业名称='"&strprofessionname&"' order by 性别,生源地,高考总成绩

说明:
从数据库中去一年的各单位电话费统计(电话费定额贺电化肥清单两个表来源)

SQL:
SELECT a.userper, a.tel, a.standfee, TO_CHAR(a.telfeedate, 'yyyy') AS telyear,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '01', a.factration)) AS JAN,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '02', a.factration)) AS FRI,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '03', a.factration)) AS MAR,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '04', a.factration)) AS APR,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '05', a.factration)) AS MAY,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '06', a.factration)) AS JUE,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '07', a.factration)) AS JUL,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '08', a.factration)) AS AGU,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '09', a.factration)) AS SEP,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '10', a.factration)) AS OCT,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '11', a.factration)) AS NOV,
SUM(decode(TO_CHAR(a.telfeedate, 'mm'), '12', a.factration)) AS DEC
FROM (SELECT a.userper, a.tel, a.standfee, b.telfeedate, b.factration
FROM TELFEESTAND a, TELFEE b
WHERE a.tel = b.telfax) a
GROUP BY a.userper, a.tel, a.standfee, TO_CHAR(a.telfeedate, 'yyyy')

说明:四表联查问题:

SQL: select * from a left inner join b on a.a=b.b right inner join c on a.a=c.c inner join d on a.a=d.d where .....

说明:得到表中最小的未使用的ID号

SQL:
SELECT (CASE WHEN EXISTS(SELECT * FROM Handle b WHERE b.HandleID = 1) THEN MIN(HandleID) + 1 ELSE 1 END) as HandleID
FROM Handle
WHERE NOT HandleID IN (SELECT a.HandleID - 1 FROM Handle a)



原文地址:http://vongates.itpub.net/post/2553/27223

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


EXP-IMP--在8i中的中文说明

发表人:vongates | 发表时间: 2005年三月20日, 07:24
认识8i中exp ,imp中每个参数的中文意思。

C:Documents and SettingsAdministrator> exp help=y

Export: Release 8.1.7.0.0 - Production on 星期日 3月 20 07:22:48 2005

(c) Copyright 2000 Oracle Corporation.  All rights reserved.

通过输入 EXP 命令和用户名/口令,您可以
在用户 / 口令之后的命令:

实例: EXP SCOTT/TIGER

或者,您也可以通过输入跟有各种参数的 EXP 命令来控制“导出”
的运行方式。要指定参数,您可以使用关键字:

格式: EXP KEYWORD=value 或 KEYWORD=(value1,value2,...,valueN)
实例: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
或 TABLES=(T1: P1,T1: P2),如果 T1 是分区表

USERID 必须是命令行中的第一个参数。

关键字  说明(默认)  关键字   说明(默认)
--------------------------------------------------------------------------
USERID   用户名/口令   FULL   导出整个文件 (N)
BUFFER   数据缓冲区的大小    OWNER  所有者用户名列表
FILE  输出文件 (EXPDAT.DMP)    TABLES    表名列表
COMPRESS 导入一个范围 (Y)   RECORDLENGTH  IO 记录的长度
GRANTS  导出权限 (Y)   INCTYPE   增量导出类型
INDEXES 导出索引 (Y)  RECORD    跟踪增量导出 (Y)
ROWS    导出数据行 (Y)   PARFILE   参数文件名
CONSTRAINTS 导出限制 (Y)    CONSISTENT   交叉表一致性
LOG   屏幕输出的日志文件    STATISTICS  分析对象 (ESTIMATE)
DIRECT   直接路径 (N)  TRIGGERS  导出触发器 (Y)
FEEDBACK 显示每 x 行 (0) 的进度
FILESIZE 各转储文件的最大尺寸
QUERY    选定导出表子集的子句

下列关键字仅用于可传输的表空间
TRANSPORT_TABLESPACE 导出可传输的表空间元数据 (N)
TABLESPACES 将传输的表空间列表

在没有警告的情况下成功终止导出。

C:Documents and SettingsAdministrator> imp help=y

Import: Release 8.1.7.0.0 - Production on 星期日 3月 20 07:21:02 2005

(c) Copyright 2000 Oracle Corporation.  All rights reserved.

可以通过输入 IMP 命令和您的用户名/口令
跟有您的用户名 / 口令的命令:

实例: IMP SCOTT/TIGER

或者, 可以通过输入 IMP 命令和各种自变量来控制“导入”
按照不同参数。要指定参数,您可以使用关键字:

格式: IMP KEYWORD=value 或 KEYWORD=(value1,value2,...,vlaueN)
实例: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
或 TABLES=(T1: P1,T1: P2),如果 T1 是分区表

USERID 必须是命令行中的第一个参数。

关键字  说明(默认)  关键字   说明(默认)
--------------------------------------------------------------------------
USERID   用户名/口令  FULL   导入整个文件 (N)
BUFFER   数据缓冲区大小   FROMUSER  所有人用户名列表
FILE  输入文件 (EXPDAT.DMP)    TOUSER    用户名列表
SHOW  只列出文件内容 (N) TABLES   表名列表
IGNORE   忽略创建错误 (N)    RECORDLENGTH  IO 记录的长度
GRANTS  导入权限 (Y)  INCTYPE   增量导入类型
INDEXES 导入索引 (Y)    COMMIT    提交数组插入 (N)
ROWS    导入数据行 (Y)  PARFILE   参数文件名
LOG   屏幕输出的日志文件   CONSTRAINTS  导入限制 (Y)
DESTROY  覆盖表空间数据文件 (N)
INDEXFILE 将表/索引信息写入指定的文件
SKIP_UNUSABLE_INDEXES  跳过不可用索引的维护 (N)
ANALYZE  执行转储文件中的 ANALYZE 语句 (Y)
FEEDBACK 显示每 x 行 (0) 的进度
TOID_NOVALIDATE  跳过指定类型 id 的校验
FILESIZE 各转储文件的最大尺寸
RECALCULATE_STATISTICS 重新计算统计值 (N)

下列关键字仅用于可传输的表空间
TRANSPORT_TABLESPACE 导入可传输的表空间元数据 (N)
TABLESPACES 将要传输到数据库的表空间
DATAFILES 将要传输到数据库的数据文件
TTS_OWNERS 拥有可传输表空间集中数据的用户

成功终止导入,但出现警告。

C:Documents and SettingsAdministrator>


oracle文档集锦(1) - hhrz - hhrz的博客 从oracle8i导入到oracle9i出现乱码


从oracle8i导入到oracle9i中文出现乱码。

其他外部条件基本一样,EXP命令导出的,请教高手怎么解决这个问题,谢谢


roc | 29/03/2005, 10:02

oracle文档集锦(1) - hhrz - hhrz的博客 从oracle8i导入到oracle9i出现乱码


oracle8i到9i应该是兼容的,另外还有差别是:原来是惠普unix,后来9i用的是Solaris,请指点


roc | 29/03/2005, 11:38

oracle文档集锦(1) - hhrz - hhrz的博客 要看你的字符集


要看你两个db的字符集是不是一样。只要字符集相同或都是超集就不会有问题。当在也要注意exp imp的client的local的字符集哟。可以到 www.eygle.com找到相关字符集的专题



原文地址:http://vongates.itpub.net/post/2553/22819

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

英文版的STATSPACK Readme

发表人:vongates | 发表时间: 2005年三月21日, 22:24

Statistics Package (STATSPACK) README (spdoc.txt)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TABLE OF CONTENTS
-----------------

0.  Introduction and Terminology
1.  Configuration
    1.1. Database space Requirements
    1.2. Installing the Tool
    1.3. Errors during Installation
2.  Gathering data - taking a snapshot
    2.1. Automating Statistics Gathering
    2.2. Using dbms_job
3.  Running a Performance report
    3.1. Running the report
    3.2. Gathering optimizer statistics on the PERFSTAT schema
4.  Configuring the amount of data captured
    4.1. Snapshot Level
    4.2. Snapshot SQL thresholds
    4.3. Changing the default values
    4.4. Snapshot Levels - details
    4.5. Specifying a Session Id
    4.6. Input Parameters for the SNAP and
   MODIFY_STATSPACK_PARAMETERS procedures
5.  Time Units used for Wait events
6.  Event Timings
7.  Managing and Sharing performance data
    7.1. Sharing data via export
    7.2. Purging/removing unnecessary data
    7.3. Removing all data
8.  New and Changed Features
9.  Upgrading from earlier releases
10. OPS specific considerations
11. Conflicts and differences compared to UTLBSTAT/UTLESTAT
    11.1. Running BSTAT/ESTAT in conjunction to Statspack
    11.2. Differences between Statspack and BSTAT/ESTAT
12. Removing the package
13. Supplied Scripts Overview
14. Limitations and Modifications
    14.1. Limitations
    14.2. Modifications


0.  Introduction
----------------

To effectively perform reactive tuning, it is vital to have an established
baseline for later comparison when the system is running poorly.  Without
a baseline data point, it becomes very difficult to identify what the new
problem is attributable to:  Has the volume of transactions on the system
increased?  Has the transaction profile or application changed?  Has the
number of users increased?

Statspack fundamentally differs from the well known UTLBSTAT/UTLESTAT
tuning scripts by collecting more information, and also by storing the
performance statistics data permanently in Oracle tables, which can later
be used for reporting and analysis.  The data collected can be analyzed
using the report provided, which includes an "instance health and load"
summary page, high resource SQL statements, as well as the traditional
wait events and initialization parameters.

Statspack improves on the existing UTLBSTAT/UTLESTAT performance scripts
in the following ways:

  - Statspack collects more data, including high resource SQL

  - Statspack pre-calculates many ratios useful when performance
    tuning, such as cache hit ratios, per transaction and per
    second statistics (many of these ratios must be calculated
    manually when using BSTAT/ESTAT)

  - Permanent tables owned by PERFSTAT store performance statistics;
    instead of creating/dropping tables each time, data is inserted
    into the pre-existing tables.  This makes historical data
    comparisons easier

  - Statspack separates the data collection from the report generation.
    Data is collected when a 'snapshot' is taken; viewing the data
    collected is in the hands of the performance engineer when he/she
    runs the performance report

  - Data collection is easy to automate using either dbms_job or an
    OS utility


  NOTE:  The term 'snapshot' is used to denote a set of statistics gathered
   at a single time, identified by a unique Id which includes the
   snapshot number (or snap_id).  This term should not be confused
   with Oracle's Snapshot Replication technology.


How does STATSPACK work?

Statspack is a set of SQL, PL/SQL and SQL*Plus scripts which allow the
collection, automation, storage and viewing of performance data.  A user
is automatically created by the installation script - this user, PERFSTAT,
owns all objects needed by this package.  This user is granted limited
query-only privileges on the V$views required for performance tuning.

Statspack users will become familiar with the concept of a 'snapshot'.
'snapshot' is the term used to identify a single collection of
performance data.  Each snapshot taken is identified by a 'snapshot id'
which is a unique number generated at the time the snapshot is taken;
each time a new collection is taken, a new snap_id is generated. 

The snap_id, along with the database identifier (dbid) and instance number
(instance_number) comprise the unique key for a snapshot (using this
unique combination allows storage of multiple instances of an OPS
database in the same tables).

Once snapshots are taken, it is possible to run the performance report.
The performance report will prompt for the two snapshot id's the report
will process.  The report produced calculates the activity on the instance
between the two snapshot periods specified, in a similar way to the
BSTAT/ESTAT report; to compare - the first snap_id supplied can be
considered the equivalent of running BSTAT; the second snap_id
specified can be considered the equivalent of ESTAT.  Unlike BSTAT/ESTAT
which can by it's nature only compare two static data points, the report
can compare any two snapshots specified.


1.  Configuration
-----------------

1.1.  Database Space Requirements

  The amount of database space required by the package will vary considerably
  based on the frequency of snapshots, the size of the database and instance,
  and the amount of data collected (which is configurable).
 
  It is therefore difficult to provide general storage clauses and space
  utilization predictions which will be accurate at each site.

  Note:  The default initial and next extent size is 1MB or 5MB for all
   tables and indexes which contain changeable data.  The minimum
   default tablespace requirement is approximately 45MB.

  Dictionary Managed Tablespaces
  If you install the package in a dictionary-managed tablespace, Oracle
  suggests you monitor the space used by the objects created, and adjust
  the storage clauses of the segments, if required.

  Locally Managed Tablespaces
  If you install the package in a locally-managed tablespace, storage
  clauses are not required, as the storage?characteristics are
  automatically managed.


1.2 Installing the Tool

Step 1.
    This step creates the PERFSTAT user, w?ich will own all PL/SQL code and
    database objects created (including the STATSPACK tables, constraints
    and the STATSPACK package).

    During the installation you will be prompted for the PERFSTAT
    user's default and temporary tablespaces.

    The default tablespace will be used to create all Statspack
    objects (such as tables and indexes).  The temporary tablespace
    will be used for sort-type activities (for more information on
    temporary tablespaces, see the Oracle Concepts Documentation).

   NOTE:
   o  Oracle do not recommend using the SYSTEM tablespace to store
   statistics data.  A more appropriate tablespace is the TOOLS
   tablespace.
   Similarly, do not use the SYSTEM tablespace as the Statspack
   user's TEMPORARY tablespace.

   o  During the installation, the dbms_shared_pool and dbms_job
   PL/SQL packages are created.  dbms_shared_pool is used to
   pin the Statspack package in the shared pool; dbms_job
   is created on the assumption the DBA will want to schedule
   periodic snapshots automatically using dbms_job.

    To install the package, either change directory to the ORACLE_HOME
    rdbms/admin directory, or fully specify the ORACLE_HOME/rdbms/admin
    directory when calling the installation script, spcreate.

    To run the installation script, you must use SQL*Plus and connect as
    a user with SYSDBA privilege.  Do not use Server Manager (svrmgrl)
    to install Statspack, as the installation will fail.

    e.g.  Start SQL*Plus, then:
   on Unix:
  SQL>  connect / as sysdba
  SQL>  @?/rdbms/admin/spcreate

   on NT:
  SQL>  connect / as sysdba
  SQL>  @%ORACLE_HOME%rdbmsadminspcreate


    The spcreate install script runs 3 other scripts - you do not need to
    run these - the scripts are called automatically:
   1.  spcusr  ->  creates the user and grants privileges
   2.  spctab  ->  creates the tables
   3.  spcpkg  ->  creates the package

    Check each of the three output files produced (spcusr.lis,
    spctab.lis, spcpkg.lis) by the installation to ensure no
    errors were encountered, before continuing on to the next step.

    Note that there are two ways to install Statspack - interactively (as
    shown above), or in "batch" mode; batch mode is useful when you do
    not wish to be prompted for the PERFSTAT user's default and
    temporary tablespaces.


   Batch mode installation
   ~~~~~~~~~~~~~~~~~~~~~~~
   To install in batch mode, you must assign values to the SQL*Plus
   variables which specify the default and temporary tablespaces before
   running spcreate.

   The variables are:
  default_tablespace   -> for the default tablespace
  temporary_tablespace -> for the temporary tablespace

   e.g.
  on Unix:
    SQL>  connect / as sysdba
    SQL>  define default_tablespace='tools'
    SQL>  define temporary_tablespace='temp'
    SQL>  @?/rdbms/admin/spcreate

   spcreate will no longer prompt for the above information.


Step 2.
    The setup phase is now complete.
    If you wish to, you may decide to change the password of the
    PERFSTAT user for security purposes.


1.3 Errors during installation

    A common error made during Statspack installation is running the install
    script from Server Manager (svrmgrl) rather than from SQL*Plus.  If you
    use svrmgrl, the installation will fail.  To correctly install Statspack
    after such errors, first run the de-install script, then the install
    script.  Both scripts must be run from SQL*Plus.

    e.g.  Start SQL*Plus, connect as a user with SYSDBA privilege, then:
    SQL> @spdrop
    SQL> @spcreate


2.   Gathering data - taking a snapshot
---------------------------------------

The simplest interactive way to take a snapshot is to login to SQL*Plus
as the PERFSTAT user, and execute the procedure statspack.snap:
    e.g.
   SQL>  connect perfstat/perfstat
   SQL>  execute statspack.snap;

  Note:  In an OPS environment, you must connect to the instance
   you wish to collect data for.

This will store the current values for the performance statistics
in the STATSPACK tables, and can be used as a baseline snapshot
for comparison with another snapshot taken at a later time.

For better performance analysis, set the init.ora parameter timed_statistics
to true;  this way, Statspack data collected will include important timing
information.  The timed_statistics parameter is also dynamically changable
using the 'alter system' command.  Timing data is important and is usually
required by Oracle support to diagnose performance problems.


2.1 Automating statistics gathering

  To be able to make comparisons of performance from one day, week or
  year to the next, there must be multiple snapshots taken over a period
  of time.

  The best method to gather snapshots is to automate the collection on
  a regular time interval.  It is possible to do this:

    - within the database, using the Oracle dbms_job procedure to
   schedule the snapshots

    - using Operating System utlities (such as 'cron' on Unix or 'at' on
   NT) to schedule the snapshot


2.2.  Using dbms_job

  To use an Oracle-automated method for collecting statistics, you can use
  dbms_job.  A sample script on how to do this is supplied in spauto.sql,
  which schedules a snapshot every hour, on the hour.

  You may wish to schedule snapshots at regular times each day to reflect your
  system's OLTP and/or batch peak loads. For example take snapshots at 9am,
  10am, 11am, 12 midday and 6pm for the OLTP load, then a snapshot at
  12 midnight and  another at 6am for the batch window.

  In order to use dbms_job to schedule snapshots, the job_queue_processes
  initialization parameter must be set to greater than 0 in the init.ora
  file for the job to be run automatically.

  Example of an init.ora entry:
    #  Set to enable the job queue process to start.  This allows dbms_job
    #  to schedule automatic statistics collection using STATSPACK
    job_queue_processes=1

  If using spauto.sql in OPS enviroment, the spauto.sql script must
  be run once on each instance in the cluster.  Similarly, the
  job_queue_processes parameter must also be set for each instance.


  Changing the interval of statistics collection
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  To change the interval of statistics collection use the dbms_job.interval
  procedure
  e.g.
    execute dbms_job.interval(1,'SYSDATE+(1/48)');

  Where 'SYSDATE+(1/48)' will result in the statistics being gathered each
  1/48 hours (i.e. every half hour).

  To force the job to run immediately,
    execute dbms_job.run(<job number>);

  To remove the autocollect job,
    execute dbms_job.remove(<job number>);

  For more information on dbms_job, see the Supplied Packages Reference
  Manual.


3.   Running a Performance report
---------------------------------

Once snapshots are taken, it is possible to generate a performance report.
The SQL script which generates the report prompts for the two snapshot id's
to be processed. 
The first will be the beginning snapshot id, the second will be the
ending snapshot id.  The report will then calculate and print ratios,
increases etc. for all statistics between the two snapshot periods, in
a similar way to the BSTAT/ESTAT report.

  Note:  It is not correct to specify begin and end snapshots where the
   begin snapshot and end snapshot were taken from different
   instance startups.  In other words, the instance must not have
   been shutdown between the times that the begin and end snapshots
   were taken.
   The reason for this requirement is the database's dynamic
   performance tables which Statspack queries to gather the data
   are memory resident, hence shutting down the database will
   reset the values in the performance tables to 0.  As Statspack
   subtracts the begin-snapshot statistics from the end-snapshot
   statistics, the resulting output will be invalid.
   If begin and end snapshots which were taken between shutdowns
   are specified in the report, the report shows an appropriate error
   to indicate this.

Separating the phase of data gathering from producing a report, allows the
flexibility of basing a report on any data points selected.  For example
it may be reasonable for the DBA to use the supplied automation script to
automate data collection every hour on the hour; If at some later point
a performance issue arose which may be better investigated by looking
at a three hour data window rather than an hour's worth of data, the
only thing the DBA need do, is specify the required start point and end
point when running the report.


3.1  Running the report

  To examine the change in statistics between two time periods, the
  spreport.sql file is executed while being connected to the PERFSTAT
  user.  The spreport.sql command file is located in the rdbms/admin
  directory of the Oracle Home.

  Note:  In an OPS environment you must connect to the instance you
   wish to report on.

  You will be prompted for:
    1. The beginning snapshot Id
    2. The ending    snapshot Id
    3. The name of the report text file to be created

    e.g. on Unix
   SQL>  connect perfstat/perfstat
   SQL>  @?/rdbms/admin/spreport

    e.g. on NT
   SQL>  connect perfstat/perfstat
   SQL>  @%ORACLE_HOME%rdbmsadminspreport
  

    Example output:
    SQL>  connect perfstat/perfstat
    Connected.
    SQL>  @spreport
 

   DB Id    DB Name   Inst Num Instance
----------- ------------ -------- ------------
 2618106428 PRD1    1 prd1


Completed Snapshots

   Snap  Snap
Instance  DB Name   Id   Snap Started    Level Comment
------------ ------------ ----- ----------------- ----- ----------------------
prd1   PRD1    1 11 May 2000 12:07  5
   2 11 May 2000 12:08  5


Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 1
Begin Snapshot Id specified: 1

Enter value for end_snap:
End   Snapshot Id specified: 2

Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is sp_1_2  To use this name,
press <return> to continue, otherwise enter an alternative.
Enter value for report_name: <press return or enter a new name>

Using the report name sp_1_2


  The report will now scroll past, and also be written to the file
  specified (e.g. sp_1_2.lis).


   Batch mode report generation
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   To run a report without being prompted, assign values to the
   SQL*Plus variables which specify the begin snap id, the end snap id
   and the report name before running spreport.

   The variables are:
  begin_snap   -> specifies the begin Snapshot Id
  end_snap  -> specifies the end   Snapshot Id
  report_name  -> specifies the Report output name

   e.g.
  on Unix:
    SQL>  connect perfstat/perfstat
    SQL>  define begin_snap=1
    SQL>  define end_snap=2
    SQL>  define report_name=batch_run
    SQL>  @?/rdbms/admin/spreport

   spreport will no longer prompt for the above information.


3.2. Gathering Optimizer statistics on the PERFSTAT schema

  For best performance when running spreport, collect optimizer statistics
  for tables and indexes owned by the PERFSTAT.  This should be performed
  whenever significant change in data volumes in PERFSTAT's tables.
  The easiest way to do this, is either to use dbms_utility, or dbms_stats,
  and specify the PERFSTAT user:
   execute dbms_utility.analyze_schema('PERFSTAT','COMPUTE');
  or
   execute dbms_stats.gather_schema_stats('PERFSTAT');


4.  Configuring the amount of data captured
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

4.1. Snapshot Level

  It is possible to change the amount of information gathered by the package,
  by specifying a different snapshot 'level'.  In other words, the level
  chosen (or defaulted) will decide the amount of data collected.
  The higher the snapshot level, the more data is gathered.  The default
  level set by the installation is level 5.  The various levels are
  explained in detail section 4.4 below.


4.2. Snapshot SQL thresholds

  There are other parameters which can be configured in addition to the
  snapshot level.

  These parameters are used as thresholds when collecting data on SQL
  statements; data will be captured on any SQL statements that breach
  the specified thresholds.

  Snapshot level and threshold information used by the package is stored
  in the stats$statspack_parameter table.


4.3. Changing the default values for Snapshot Level and SQL Thresholds

  If you wish to, you can change the default parameters used for taking
  snapshots, so that they are tailored to the instance's workload.

  You can do this either by:

  o  Taking a snapshot, and specifying the new defaults to be saved to the
  database (using statspack.snap, and using the i_modify_parameter
  input variable).

  SQL>  execute statspack.snap -
  (i_snap_level=>10, i_modify_parameter=>'true');

  Setting the i_modify_parameter value to true will save the new
  thresholds in the stats$statspack_parameter table; these thresholds
  will be used for all subsequent snapshots.

  If the i_modify_parameter was set to false or if it were omitted, the
  new parameter values would not be saved.  Only the snapshot taken at
  that point will use the specified values, any subsequent snapshots will
  use the preexisting values in the stats$statspack_parameter table.

  The full list of parameters which can be passed into snap
  are listed in 4.6. below

  o  Changing the defaults immediately without taking a snapshot, using the
  statspack.modify_statspack_parameter procedure.  For example to change
  the snapshot level to 10, and the SQL thresholds for buffer_gets and
  disk_reads, the following statement can be issued:

  SQL>  execute statspack.modify_statspack_parameter -
   (i_snap_level=>10, i_buffer_gets_th=>10000, i_disk_reads_th=>1000);

  This procedure changes the values permananently, but does not
  take a snapshot.

  The full list of parameters which can be passed into the
  modify_statspack_parameter procedure are the same as those for
  the snap procedure.  These are listed in 4.6. below.


4.4 Snapshot Levels - details

 Levels  >= 0   General performance statistics
    Statistics gathered:
    This level and any level greater than 0 collects general
    performance statistics, such as: wait statistics, system events,
    system statistics, rollback segment data, row cache, SGA,
    background events, session events, lock statistics,
    buffer pool statistics, parent latch statistics.

 Levels  >= 5  Additional data:  SQL Statements
    This level includes all statistics gathered in the lower level(s),
    and additionally gathers the performance data on high resource
    usage SQL statements.

    In a level 5 snapshot, note that the time required for the snapshot
    to complete is dependant on the shared_pool_size and on the number of
    SQL statements in the shared pool at the time the snapshot is taken:
    the larger the shared pool, the longer the time taken to complete
    the snapshot.

    SQL 'Thresholds'
    The SQL statements gathered by Statspack are those which exceed one of
    four predefined threshold parameters:
  - number of executions of the SQL statement   (default 100)
  - number of disk reads performed by the SQL statement  (default 1,000)
  - number of parse calls performed by the SQL statement (default 1,000)
  - number of buffer gets performed by the SQL statement (default 10,000)
  - size of sharable memory used by the SQL statement    (default 1m)
  - version count for the SQL statement   (default 20)

    The values of each of these threshold parameters are used when
    deciding which SQL statements to collect - if a SQL statement's
    resource usage exceeds any one of the above threshold values, it
    is captured during the snapshot.
 
    The SQL threshold levels used are either those stored in the table
    stats$statspack_parameter, or by the thresholds specified when
    the snapshot is taken.

 Levels  >= 10 Additional statistics:  Parent and Child latches
    This level includes all statistics gathered in the lower levels, and
    additionally gathers Parent and Child Latch information.  Data gathered
    at this level can sometimes cause the snapshot to take longer to complete
    i.e. this level can be resource intensive, and should only be used
    when advised by Oracle personnel.


4.5.  Specifying a Session Id

  If you would like to gather session statistics and wait events for a
  particular session (in addition to the instance statistics and wait events),
  it is possible to specify the session id in the call to Statspack.  The
  statistics gathered for the session will include session statistics,
  session events and lock activity.  The default behaviour is to not to
  gather session level statistics.

    SQL>  execute statspack.snap(i_session_id=>3);


4.6.  Input Parameters for the SNAP and MODIFY_STATSPACK_PARAMETERS procedures

   Parameters able to be passed in to the statspack.snap and
   statspack.modify_statspack_parameter procedures are as follows:

  Range of   Default
Parameter Name   Valid Values  Value    Meaning
------------------  ------------  -------  -----------------------------------
i_snap_level  0, 5, 10   5  Snapshot Level
i_ucomment  Text    Blank    Comment to be stored with Snapshot
i_executions_th  Integer >=0   100   SQL Threshold: number of times
    the statement was executed
i_disk_reads_th  Integer >=0   1,000    SQL Threshold: number of disk reads
    the statement made
i_parse_calls_th    Integer >=0   1,000    SQL Threshold: number of parse
    calls the statement made
i_buffer_gets_th    Integer >=0   10,000   SQL Threshold: number of buffer
    gets the statement made
i_sharable_mem_th   Integer >=0   1048576  SQL Threshold: amount of sharable
    memory
i_version_count_th  Integer >=0   20    SQL Threshold: number of versions
    of a SQL statement
i_session_id  Valid sid  0 (no    Session Id of the Oracle Session
  from    session) to capture session granular
  v$session  statistics for
i_modify_parameter  True, False   False    Save the parameters specified for
    future snapshots?


5.  Time Units used for Wait events
-----------------------------------

Although Oracle records wait time in hundredth's of a second (i.e.
centiseconds), some timings in the report (especially IO times) are
converted to milliseconds to allow easier comparison with Operating
System monitoring utilities which often report timings in milliseconds.

For clarity, the time units used are specified in the column headings of
each timed column.  The convention used is:
   (cs) - a centisecond - which is  100th of a second
   (ms) - a millisecond - which is 1000th of a second


6.  Event Timings
-----------------
If timings are available, the Statspack report will order wait events by time
(in the Top-5 and background and foreground Wait Events sections).

If timed_statistics is false for the instance, however a subset of users or
programs set timed_statistics set to true dynamically, the Statspack report
output may look inconsistent, where some events have timings (those which the
individual programs/users waited for), and the remaining events do not.
The Top-5 section will also look unusual in this situation.

Optimally, timed_statistics should be set to true at the instance level for
ease of diagnosing performance problems.


7.  Managing and Sharing performance data
-----------------------------------------

7.1. Sharing data via export

  If you wish to share data with other sites (for example if Oracle
  Support requires the raw statistics), it is possible to export
  the PERFSTAT user.

  An export parameter file (spuexp.par) has been supplied for this
  purpose.  To use this file, supply the export command with the
  userid parameter, along with the export parameter file name.
  e.g.
    exp userid=perfstat/perfstat parfile=spuexp.par

  This will create a file called spuexp.dmp and the log file
  spuexp.log

  If you wish to load the data into another database, use the import
  command.  For more information on using export and import, please
  see the Oracle Utilities manual.


7.2. Purging/removing unnecessary data

  It is possible to purge unnecessary data from the PERFSTAT schema using
  sppurge.sql.   This script deletes snapshots which fall between
  the begin and end range of Snapshot Id's specified.

  NOTE:
    It is recommended you export the schema as a backup before running this
    script, either using your own export parameters, or those provided in
    spuexp.par

    Purging may require the use of a large rollback segment, as all data
    relating each Snapshot Id to be purged will be deleted.
    To avoid rollback segment extension errors, explicitly use a large
    rollback segment.  This can be done by executing the 'set transaction
    use rollback segment..' command before running the sppurge.sql script
    (for more information on the set transaction command see the SQL reference
    manual).  Alternatively, to avoid rollback segment extension errors
    specify a smaller range of Snapshot Id's to purge.

  When sppurge is run the the instance currently connected to along with
  the available snapshots are displayed.  The DBA is then prompted for the
  low Snap Id and high Snap Id.  All snapshots which fall within this
  range will be purged.

  e.g. Purging data - connect to PERFSTAT using SQL*Plus, then run the
    script - an example output appears below.

   SQL>  connect perfstat/perfstat
   SQL>  set transaction use rollback segment rbig;
   SQL>  @sppurge

   Database Instance currently connected to
   ========================================
  Instance
   DB Id    DB Nam
【人工智能】广度优先搜索(BFS)在人工智能中的应用(Python源码) 本文系统阐述了广度优先搜索(BFS)算法在人工智能领域的核心原理与应用。作为无信息搜索算法,BFS通过FIFO队列实现节点遍历,保证在无权图中的最优性。文章详细解析了BFS的伪代码实现和Python编程示例,并通过机器人路径规划案例展示了其实际应用场景。测试结果表明,BFS能有效解决包含障碍物的网格寻路问题,验证了算法在AI领域的实用价值。该研究为理解基础搜索算法及其工程应用提供了重要参考。 阅读详情

相关推荐

Matlab实战:5分钟搞定脉冲多普勒雷达信号处理仿真(附完整代码)

本文详细介绍了如何使用Matlab在5分钟内完成脉冲多普勒雷达信号处理仿真,包括环境配置、线性调频信号生成、数字下变频处理、动目标检测及性能优化技巧。通过完整代码示例和实用技巧,帮助工程师快速验证算法可行性,提升雷达信号处理效率。

nokia的博客 944

使用split、compress分割压缩oracle的exp文件

如何在unix平台上,使用管道和split、compress命令,将oracle的exp输出文件进行分割和压缩,本文进行了详尽的描述。   原文网址:http://www.idevelopment.info/data/Oracle/DBA_tips/Export_Import/EXP_2.shtml Export Files Greater Than 2GB by Jeff Hunter,

航海日志 1219

【零基础入门哈希签名架构,从Lamport到SPHINCS+】第二集 哈希签名树 Merkle Tree Authentication

在第一集中,我们一直忽略了一个问题。设想一下,假如有一个Hacker(黑客),在截获到Sender发送给Receiver的公钥之后,把这个公钥改成Hacker自己的公钥,然后再发给Receiver,那么Receiver就会误认为这是Sender的公钥。所以我们之前所说放方案,其安全性都需要建立在一个前提下:Receiver需要确认公钥确实是Sender发出的。

m0_50572808的博客 2452

10046 trace and sql

1. SQLT 下载 从metalink上下载SQLT工具,参考文档 (以下大部分(SQL可以在sqlt\utl 目录下找到)) 1.1 SQLT 安装 SQLT安装在自己的schema SQLTXPLAIN下,它不会在其他业务用户下安装任何对象.你可以在10.2以上版本的UNIX、LINUX或WINDOWS上安装. 安装步骤: 卸载之前版本 (可选). 这个...

weixin_33714884的博客 846

《涨知识啦29》-DBR的工作原理及其在VCSEL中的作用

分布式布拉格(Distributed Bragg Reflection,简称DBR)反射镜是垂直腔面发射激光器(Vertical-Cavity Surface-Emitting Laser,简称VCSEL)的重要组成部分。典型的DBR反射镜是由1/4ni波长厚度的高折射率和低折射率材料交替组成(ni是该层的折射率)。其反射率取决于组成对数、边界条件以及折射率差。 图1 布拉格反射镜的工作原理 DBR反射镜的工作原理如图1所示。根据反射原理,当光从光疏介质n1射向光密介质n2(折射率n2>n1)时,反

simucal的博客 7983

一文读懂无人机AI识别算法,原理、技术、应用

本文详细介绍了无人机识别算法的工作原理、技术优势以及在多个行业的应用前景,展现了其在提升安全监控、资源管理和应急响应中的关键作用。尽管无人机识别算法在多个领域展现出巨大潜力,但仍面临技术挑战,如算法的准确性、数据的实时处理能力以及对复杂环境的适应性。4. 消防与城市管理: 无人机识别算法在消防和城市管理中的应用,为相关部门提供了及时的信息支持,提升了应急处置能力和城市管理水平。1. 公安监控: 无人机识别算法在公安领域的应用,可以实时识别犯罪嫌疑人和违法行为,有效提升城市治安管理的智能化水平。

foiadrone的博客 1847

转 sql profile 绑定 litera and move profile to another db l for spa

SQL TYPE 1:for bind value sql , first create a good plan withliteral and with goodprofile. then use sqlT to replace the profile‘’s good plan to bind value sql_id. then double checking . v...

weixin_34150224的博客 241

基于FMCW技术的毫米波雷达测速原理与应用

调频连续波(FMCW)技术是毫米波雷达中实现高精度测速的核心方法之一。本文详细介绍了FMCW测速的基本原理、信号处理流程以及在实际应用中的关键技术。通过分析FMCW雷达的多普勒效应和频率差测量方法,本文展示了如何利用FMCW技术实现目标速度的高精度检测。此外,本文还探讨了FMCW测速在自动驾驶、智能交通和工业自动化等领域的应用案例,为毫米波雷达开发者提供了理论支持和实践指导。

不谈枯燥公式,只聊雷达趋势。用大白话解读毫米波里的黑科技。 1137

Eygle力荐:Oracle 19c升级文档、视频、问答集锦

前段时间,墨天轮分享了直播《Oracle 19c升级实战分享 - 云和恩墨大讲堂2020》,在这里我们共享一下PPT和视频,以及在直播过程中,读者提出升级过程中遇到的一些典型问题,供大家...

Enmotech的博客 592

DSP28335量产升级避坑指南:C2Prog串口烧录.hex文件,为什么我推荐COM1?

本文详细解析了DSP28335量产升级中C2Prog串口烧录.hex文件的最佳实践,重点推荐使用COM1端口以确保稳定性。通过实测数据和底层机制分析,揭示了Windows系统对COM1的特殊优化及C2Prog工具的时钟切换逻辑,帮助开发者规避常见陷阱,提升烧录成功率。

weixin_27066963的博客 384

Oracle 12C 使用疑难处理集锦

Oracle 12C 使用疑难处理集锦 1、查询Oracle 12C端口启(port)动状态 Oracle12C数据库,不像往常版本一样使用emctl status dbconsole 进行查询,而是使用lsnrctl status 查询监听的状态,在cmd中输入lsnrctl status 回车(按下Enter键),如果显示如下图,则表示成功。 2、在oracle安装...

cnds123的专栏 627

手机VPN的连接方法分享

6、返回到VPN页面,可以看到刚刚新添加的VPN,点击开启VPN后面的开关。5、在打开的添加VPN的页面中输入VPN的信息后点击右上角的“保存”按钮。7、待VPN开关开启后,可以看到添加的VPN正在连接的提示信息了。2、在打开的小米手机设置页面中点击“更多连接方式”的菜单项。3、然后在打开的更多连接方式页面中点击VPN的菜单项。4、在打开的VPN设置页面中点击“添加VPN”的按钮。1、首先在手机屏幕左右的滑动,找到手机的设置图标。

惠惠软件 3万+

oracle 中sql,Oracle中SQL编写集锦

Oracle中SQL编写集锦1、实现行列动态转换,常用于主从表关联时的特殊需求select rwbm,psqh,max(decode(xh1,1,yy))JKYL1,max(decode(xh1,2,yy))JKYL2,max(decode(xh1,3,yy))JKYL3,max(decode(xh1,4,yy))JKYL4,max(decode(xh1,5,yy))JKYL5,max(decod...

weixin_39998906的博客 140

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

电脑书籍下载网站集锦

我们爱技术-IT人的世界 http://www.tech521.com/main.asp 泰神电脑书屋:http://www.taishen.net/ebook/ 编程先锋教程:http://wlbookwl.myrice.com/jck.htm 绿岛教程:http://lvdao.njau.edu.cn/jiaocheng/index.asp 书籍推荐 Sybex Linux+ Study Gu

Tobylili的小窝 3346

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

oracle数据库中常用语法,ORACLE数据库的基本语法集锦

ORACLE数据库的基本语法集锦ORACLE数据库的基本语法集锦-- 表create table test (names varchar2(12),dates date,num int,dou double);-- 视图create or replace view vi_test asselect * from test;-- 同义词create or replace synonym aa...

weixin_30988079的博客 395

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

Hibernate文档集锦1

Hibernate快速入门... 1 JDBC+Hibernate将Blob数据写入Oracle. 12word文档下载:http://www.chq.name/component/option,com_docman/task,doc_download/gid,8/Itemid,71/ Hibernate快速入门... 1 JDBC+Hibernate将Blob数据写入Oracle. 12  

航海日志 349

Oracle函数集锦

  本文更多将会介绍三思在日常中经常会用到的,或者虽然很少用到,但是感觉挺有意思的一些函数。分二类介绍,分别是:  著名函数篇-经常用到的函数  非著名函数篇-即虽然很少用到,但某些情况下却很实用  注:N表示数字型,C表示字符型,D表示日期型,[]表示内中参数可被忽略,fmt表示格式。  单值函数在查询中返回单个值,可被应用到select,where子句,start with以及

网络 人生 学习 进步 1438

数据库oracle安装失败,Oracle数据库安装错误集锦

Oracle数据库安装错误集锦:◆1.如果你不能运行./runInstaller ,提示x11 错误,请使用root 输入如下命令#xhost +◆2.如果当你输入dbca命令之后在最后一步会莫名其妙的发生界面消失,并在命令行出现如下错误消息:/oracle/product/9.2.0.1/bin/dbca: line 124: 27348 Killed $JRE_DIR/bin/jre -  ...

weixin_35995565的博客 1220

oracle sql编写,Oracle中SQL编写集锦

Oracle中SQL编写集锦1、实现行列动态转换,常用于主从表关联时的特殊需求select rwbm,psqh,max(decode(xh1,1,yy))JKYL1,max(decode(xh1,2,yy))JKYL2,max(decode(xh1,3,yy))JKYL3,max(decode(xh1,4,yy))JKYL4,max(decode(xh1,5,yy))JKYL5,max(decod...

weixin_35748508的博客 137

Oracle Maximum Availability Architecture(MAA)官方文档

官档《集结号》 收录以备用 1、MAA官档集锦文档 http://www.oracle.com/technetwork/database/features/availability/oracle-data...

cqrw65623的博客 289

oracle错误集锦及解决方法

[转贴] 作者:Fenng 日期:13-Oct-2004  出处:http://www.dbanotes.net ORA-03113 end of file on communication channel 前言 每一个DBA在进行数据库管理的过程中不可避免的要遇到形形色色的错误(ORA-1547 ,ORA-904,ORA-1578 ......)。有些错误由于频繁出现、原因复杂而被 Oracl...

mako8810的专栏 246

oracle有啥功能,Oracle常用功能集锦

ASPOracle常用功能集锦作者: 来源:www.28hudong.com2013-03-30 08:57:15阅读次数值函数:abs(m) m的绝对值mod(m,n) m被n除后的余数power(m,n) m的n次方round(m[,n]) m四舍五入至小数点后n位的值(n缺省为0)trunc(m[,n]) m截断n位小数位的值(n缺省为0)--------------------------...

weixin_42314737的博客 409

用友U8-sql server2008 对接国库支付oracle数据问题集锦

用友U8对接国库支付oracle数据问题集锦 oracle数据库链接问题 用友U8接口形式 接口数据采集要点 oracle数据库链接问题 其实核心主要是通过sql server 的 服务器对象 - 链接服务器 添加一个远端服务器,实现与oracle的对接。 1、驱动的选择 sql server 2008 R2 安装后自带的访问接口驱动为MSORA 由于各种问题导致非常不好用。需

经典草根Blog 2491

oracle分组分栏,深入浅出Oracle EBS之XML Publisher技巧集锦.doc

Doc Ref: REF DocRefNumber REF DocTitle Oracle ERP最佳技术实践REF LastDate April 12, 2007STYLEREF HD2 相关专题讨论 If Section 1 > 1 “PAGE 32 of = NUMPAGES 43 - Sec1 43” “ PAGE iii” 32 of 43REF S...

weixin_39672443的博客 385

oracle的一些小问题集锦(不断更新)

问题1:TNS启动后又自动停止。 现象:在计算机服务里启动oracleoradb10g_home1tnslistener时,状态显示"已启动"后,刷新,状态又变为停止状态,表明服务启动时出现异常导致无法启动 造成原因分析:安装oracle10g后把计算机的名称改了 解决方法:重新配置listener 具体做法:开始-->程序-->Oracle - OraDb10g_hom...

weixin_30753873的博客 182
上一篇: 必须掌握的八个DOS命令
下一篇: 必须掌握的八个DOS命令
josonchen
博客等级 码龄27年 47粉丝 589原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值