oracle工具之 csscan

CSSCAN(Character Set Scanner utility)是Oracle提供的一个用于检查字符集转换过程中可能会出现的数据丢失或者损坏的情况。也可以单独的扫描某些表某些列能否进行字符集转换,并且能够并行扫描以加快扫描速度。

D:\>csscan help=y

Character Set Scanner v2.1 : Release 10.2.0.0.0 – Production on 金 9月 21 13:51:
40 2018

Copyright (c) 1982, 2005, Oracle. All rights reserved.

You can let Scanner prompt you for parameters by entering the CSSCAN
command followed by your username/password:

Example: CSSCAN SYSTEM/MANAGER

Or, you can control how Scanner runs by entering the CSSCAN command
followed by various parameters. To specify parameters, you use keywords:

Example: CSSCAN SYSTEM/MANAGER FULL=y TOCHAR=utf8 ARRAY=1024000 PROCESS=3

Keyword Default Prompt Description
———- ——- —— ————————————————-
USERID yes username/password
FULL N yes scan entire database
USER yes owner of tables to be scanned
TABLE yes list of tables to scan
COLUMN yes list of columns to scan
EXCLUDE list of tables to exclude from scan
TOCHAR yes new database character set name
FROMCHAR current database character set name
TONCHAR new national character set name
FROMNCHAR current national character set name
ARRAY 1024000 yes size of array fetch buffer
PROCESS 1 yes number of concurrent scan process
MAXBLOCKS split table if block size exceed MAXBLOCKS
CAPTURE N capture convertible data
SUPPRESS maximum number of exceptions logged for each table
FEEDBACK report progress every N rows
BOUNDARIES list of column size boundaries for summary report
LASTRPT N generate report of the last database scan
LOG scan base file name of report files
PARFILE parameter file name
PRESERVE N preserve existing scan results
LCSD N no enable language and character set detection
LCSDDATA LOSSY no define the scope of the detection
HELP N show help screen (this screen)
QUERY N select clause to scan subset of tables or columns
———- ——- —— ————————————————-
Scanner terminated successfully.

利用VS2015 调试oracle 存储过程

环境

WIN 10 Pro

VS2015

Oracle 12c

必须安装 ODAC~~~

 

  • Oracle 12c Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio version 12.1.0.2.4 or later
  • http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html

Debugging Oracle PL/SQL from Visual Studio

安装完成之后

1.Open Visual Studio. From the View menu, select Server Explorer.

2.In the Server Explorer, right click on Data Connections and then select Add Connection. 继续阅读“利用VS2015 调试oracle 存储过程”

Oracle12c中通过SQL Developer工具debug存储过程时的错误: ORA-24247

调试Oracle的存储过程时,需要数据库管理员给用户赋debug权限

GRANT debug any procedure, debug connect session TO USERXXX;

但是在Oracle12c中, 如果仅有此权限, 在debug时还会报如下错误:
Connecting to the database USERXXX.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( ‘192.168.10.101’, ‘61116’ )
ORA-24247: network access denied by access control list (ACL)
ORA-06512: at “SYS.DBMS_DEBUG_JDWP”, line 68
ORA-06512: at line 1

Process exited.
Disconnecting from the database USERXXX.

从Oracle 12c开始,如果通过基于JDWP(Java Debug Wire Protocol)协议的调试器(如SQL Developer, JDeveloper)调试PL/SQL存储过程, 需要给用户赋予JDWP ACL权限,允许其通过某台主机用调试工具连接数据库, 示例如下:

继续阅读“Oracle12c中通过SQL Developer工具debug存储过程时的错误: ORA-24247”

oracle sql学习1

SQL 对大小写不敏感

结构化查询语言(Structured Query Language)简称SQL

DDL(Data Definition Language 数据定义语言)用于操作对象和对象的属性,这种对象包括数据库本身,以及数据库对象,像:表、视图等等,DDL对这些对象和属性的管理和定义具体表现在Create、Drop和Alter上。特别注意:DDL操作的“对象”的概念,”对象“包括对象及对象的属性,而且对象最小也比记录大个层次。以表举例:Create创建数据表,Alter可以更改该表的字段,Drop可以删除这个表,从这里我们可以看到,DDL所站的高度,他不会对具体的数据进行操作。

该语言不需要commit,因此慎重。 继续阅读“oracle sql学习1”

oracle的快捷方式丢失 Enterprise Manager Console ~

oracle 10g的在开始菜单的一些命令的快捷方式丢失~~~

在命令行执行:

~~~~bin\oemapp.bat console

即可打开oracle的Enterprise Manager Console界面了。

 

建立监听的命令 netmgr

~~~~\BIN\launch.exe “~~~\network\tools” ..\network\tools\netmgr.cl

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ORACLE_HOME/bin/emctl start dbconsole

When this succeeded, it prints you the url where EM is listening for connections; usuallyhttp://dbhost:1158/em