咋办咋办啊..

da2121211 2006-10-11 08:41:41
咋办啊,大家帮忙看看,啊.

Project name: export a scheme/database objects script with data dictionary
Sometimes, programmer or DBA need script about a database or a scheme ,How to export the script on a scheme from data dictionary,write the detaile SQL statement
...全文
198 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
da2121211 2006-10-12
  • 打赏
  • 举报
回复
哇,好强啊.谢谢大虾,可是还有问题没有解决,麻烦大家再帮忙看下..:)
Calling external procedure with Java or C language program
Oracle provide a JVM to processing Java class ,and call external program directly, writing
the detailed method to call external Java class and C language program in database. Take a
example to describe it.
Hint: First of all ,configure tnsnames.ora file and listener.ora ,then prepare external procedures,
use create [or replace] library library_name {is|as} 'file_name_and_path' to create library, grant
execute on <library_name> to <user/public>;
Use the SQL statement
create [or replace] procedure [schema.]procedure_name
as
name <exdll_inner_subroutine_name>
language C
library lib_name
[with context][parameters (parameters)]
or
create [or replace] procedure [schema.]procedure_name
as
language Java name ('string')
to create external procedures.
The last step is to call and execute external procedure.
Requirement:
Write the principle and detailed procedures/steps, add the necessary illustration
and screen copy using screen coping software. Shrinking graph size in the report.
honghulong 2006-10-12
  • 打赏
  • 举报
回复
SET ECHO OFF;
SET FEEDBACK OFF;
SET HEADING OFF;
SPOOL c:/myheart.TXT;
SELECT decode(line,1,'create or replace '||TEXT,text) FROM USER_SOURCE WHERE TYPE = 'PROCEDURE'
AND NAME IN( SELECT OBJECT_NAME FROM USER_OBJECTS
WHERE OBJECT_TYPE = 'PROCEDURE');
spool off;
SET ECHO ON;
SET FEEDBACK ON;
SET HEADING ON;

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧