oracle存储过程function,oracle 存储过程跟function

当前位置:我的异常网» 数据库 » oracle 存储过程跟function

oracle 存储过程跟function

www.myexceptions.net  网友分享于:2014-11-26  浏览:0次

oracle 存储过程和function

function

function 语法中本地调用用 测试用

SELECT TO_DATE('2006-05', 'YYYY-MM') FROM DUAL

-------------------------

create or replace function getmonthfunction(yearandmonth  varchar,paten  varchar)

return varchar

as

v_sal varchar;

begin

select  to_char(add_months(TO_DATE('2014-5', 'YYYY-MM'),-1), 'mm')    v_sal from dual ;

return v_sal;

end ;

drop function getmonthfunction;

select getmonthfunction(2014-11,mm) from  dual;

select getmonthFunc('2014-12',-5) from  dual;

CREATE OR REPLACE  FUNCTION getmonthFunc (yearandmonth IN varchar, num2 IN varchar)

RETURN VARCHAR2

IS

month VARCHAR2(100);

cmonth VARCHAR2(100);

BEGIN

month:=to_char(add_months(TO_DATE(yearandmonth, 'YYYY-MM'),num2), 'mm');

if month=1

THEN

cmonth:='AMOUNTJANUARY';

end if;

if month=2

THEN

cmonth:='AMOUNTFEBRUARY';

end if;

if month=3

THEN

cmonth:='AMOUNTMARCH';

end if;

if month=4

THEN

cmonth:='AMOUNTAPRIL';

end if;

if month=5

THEN

cmonth:='AMOUNTMAY';

end if;

if month=6

THEN

cmonth:='AMOUNTJUNE';

end if;

if month=7

THEN

cmonth:='AMOUNTJULY';

end if;

if month=8

THEN

cmonth:='AMOUNTAUGUST';

end if;

if month=9

THEN

cmonth:='AMOUNTSEPTEMBER';

end if;

if month=10

THEN

cmonth:='AMOUNTOCTOBER';

end if;

if month=11

THEN

cmonth:='AMOUNTNOVEMBER';

end if;

if month=12

THEN

cmonth:='AMOUNTDECEMBER';

end if;

RETURN cmonth;

END getmonthFunc;

drop function  getmonthFunc

------------------------------------------------------------------------------------------------

select getmonthforNumFunc('2014-12',-5) from  dual;

CREATE OR REPLACE  FUNCTION getmonthforNumFunc (yearandmonth IN varchar, num2 IN varchar)

RETURN VARCHAR2

IS

month VARCHAR2(100);

BEGIN

month:=to_number(to_char(add_months(TO_DATE(yearandmonth, 'YYYY-MM'),num2), 'mm'));

RETURN month;

END getmonthforNumFunc;

select getyearforNumFunc('2014-12',0) from  dual;

CREATE OR REPLACE  FUNCTION getyearforNumFunc (yearandmonth IN varchar, num2 IN varchar)

RETURN VARCHAR2

IS

year VARCHAR2(100);

BEGIN

year:=to_char(add_months(TO_DATE(yearandmonth, 'YYYY-MM'),num2), 'YYYY');

RETURN year;

END getyearforNumFunc;

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

select getskuassessmenntFunc('2014-12',-3) from  dual;

CREATE OR REPLACE  FUNCTION getskuassessmenntFunc (yearandmonth IN varchar, num2 IN varchar)

RETURN VARCHAR2

IS

msg VARCHAR2(100);

num VARCHAR2(100);

BEGIN

num:=substr(num2,2,1);

msg:='skuassessmennt'||num ;

RETURN msg;

END getskuassessmenntFunc;

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

select getskuassessmenntLvFunc('2014-12',-1,'8a8ad0a038d53d3a0138d58b16cf006b','297e57f448a1a8220148a56095613717') from  dual;

CREATE OR REPLACE  FUNCTION getskuassessmenntLvFunc (yearandmonth IN varchar, num2 IN varchar,departmentid IN varchar,checkty IN varchar )

RETURN VARCHAR2

IS

msg VARCHAR2(100);

num VARCHAR2(100);

Result varchar2(50);

y VARCHAR2(100);

BEGIN

num:=substr(num2,2,1);

msg:='skuassessmennt'||num ;

y:=to_char(add_months(TO_DATE(yearandmonth, 'YYYY-MM'),num2), 'YYYY');

if num=1

THEN

select skuassessmennt1  into Result from uf_accuracyparameters where year=y and department=departmentid and checktype=checkty;

end if;

if num=2

THEN

select skuassessmennt2  into Result from uf_accuracyparameters where year=y and department=departmentid and checktype=checkty;

end if;

if num=3

THEN

select skuassessmennt3  into Result from uf_accuracyparameters where year=y and department=departmentid and checktype=checkty;

end if;

RETURN Result;

END getskuassessmenntLvFunc;

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

CREATE OR REPLACE PACKAGE TESTPACKAGE  AS

TYPE Test_CURSOR IS REF CURSOR;

END TESTPACKAGE;

CREATE OR REPLACE PROCEDURE test2(typestring IN VARCHAR2) IS

BEGIN

INSERT INTO B_ID_temp ( I_ID ,I_NAME)VALUES SELECT I_ID ,I_NAME FROM B_ID

END test2

CREATE OR REPLACE PROCEDURE Proc_Insert(P_CURSOR OUT TESTPACKAGE.TEST_CURSOR,

yearandmonth IN VARCHAR2,

checktypeid IN VARCHAR2,

departmentid IN VARCHAR2,

curtuerid IN VARCHAR2)

IS

str_sql varchar2(4000):='';

amountmonth varchar2(400):='';

amountmonth2 varchar2(400):='';

amountmonth3 varchar2(400):='';

BEGIN

amountmonth:=getmonthFunc(''||yearandmonth||'',-1);

amountmonth2:=getmonthFunc(''||yearandmonth||'',-2);

amountmonth3:=getmonthFunc(''||yearandmonth||'',-3);

str_sql:='INSERT INTO UF_MONTHASSESSMENTTEMPORARY

(id,

department,

province,

area,

customercode,

customer,

productcode,

product,

price,

amountexpect,

amounthistory,

departmentcn,

provincecn,

areacn,

year,

month,

isaccord,

currentUserId

)

SELECT aa.id,

aa.DEPARTMENT,

aa.PROVINCE,

aa.AREA,

aa.CUSTOMERCODE,

aa.CUSTOMER,

aa.PRODUCTCODE,

aa.PRODUCT,

aa.PRICE,

aa.AMOUNTEXPECT,

aa.AMOUNTHISTORY,

aa.DEPARTMENTCN,

aa.PROVINCECN,

aa.AREACN,

aa.YEARBUDGET,

aa.monthbudget,

aa.ISACCORD,

'''||curtuerid||'''currentUserId from (

SELECT zz.id,

zz.DEPARTMENT,

zz.PROVINCE,

zz.AREA,

zz.CUSTOMERCODE,

zz.CUSTOMER,

zz.PRODUCTCODE,

zz.PRODUCT,

zz.PRICE,

zz.AMOUNTEXPECT,

zz.AMOUNTHISTORY,

zz.DEPARTMENTCN,

zz.PROVINCECN,

zz.AREACN,

zz.YEARBUDGET,

zz.monthbudget,

CASE when zz.lv between zz.startlv and zz.endlv then 1 else 0 end as ISACCORD from (

SELECT

uf1.id,

uf1.DEPARTMENT,

uf1.PROVINCE,

uf1.AREA,

uf1.CUSTOMERCODE,

uf1.CUSTOMER,

uf1.PRODUCTCODE,

uf1.PRODUCT,

uf1.PRICE,

uf1.monthprice1 AMOUNTEXPECT,

uf2.'||amountmonth||' AMOUNTHISTORY,

uf1.DEPARTMENTCN,

uf1.PROVINCECN,

uf1.AREACN,

uf1.YEARBUDGET,

uf1.monthbudget,

1 as ISACCORD,

cc.startlv,

cc.endlv,

CASE NVL(UF2.'||amountmonth||',0) WHEN ''0'' THEN 0 ELSE round(NVL(NVL(UF1.monthprice1, 0) / NVL(UF2.'||amountmonth||', 0)*100, 0),2) END  lv

FROM UF_MONTHINCOMETEST UF1

LEFT JOIN UF_MIDTBMONTHLICBUDGET UF2

ON UF1.DEPARTMENT = UF2.DEPARTMENT

AND UF1.PRODUCTCODE = UF1.PRODUCTCODE

and uf1.customer=uf2.customercode

AND UF1.PROVINCE = UF2.PROVINCE

AND UF1.AREA = UF2.AREA

AND UF2.YEAR = getyearforNumFunc('''||yearandmonth||''',0)-1

left join (select (100-(100-getskuassessmenntLvFunc('''||yearandmonth||''',-1,'''||departmentid||''','''||checktypeid||'''))) startlv,(100+(100-getskuassessmenntLvFunc('''||yearandmonth||''',-1,'''||departmentid||''','''||checktypeid||'''))) endlv, getskuassessmenntLvFunc('''||yearandmonth||''',-1,'''||departmentid||''','''||checktypeid||''') ,year, department from uf_accuracyparameters  ) cc

on uf1.YEARBUDGET=cc.year and uf1.department=cc.department

WHERE UF1.DEPARTMENT = '''||departmentid||'''

AND UF1.YEARBUDGET =getyearforNumFunc('''||yearandmonth||''',-1)

and uf1.monthbudget=getmonthforNumFunc('''||yearandmonth||''',-1) ) zz

) aa';

execute immediate str_sql;

OPEN P_CURSOR FOR

SELECT * FROM UF_MONTHASSESSMENTTEMPORARY;

END Proc_Insert;

DROP TABLE B_ID_temp

DROP PROCEDURE TESTC

EXEC TESTC

SELECT COUNT(*) FROM UF_MONTHASSESSMENTTEMPORARY

DELETE FROM UF_MONTHASSESSMENTTEMPORARY

create global temporary table mytesttemp(id   VARCHAR2(32 CHAR) not null,

requestid              VARCHAR2(32 CHAR),

nodeid                 VARCHAR2(32 CHAR),

rowindex               VARCHAR2(100 CHAR),

productcode            VARCHAR2(256 CHAR),

product                VARCHAR2(256 CHAR),

year                   VARCHAR2(32 CHAR),

updatedate             VARCHAR2(32 CHAR),

isdelete               INTEGER default 0 not null,

department             VARCHAR2(256 CHAR),

province               VARCHAR2(256 CHAR),

area                   VARCHAR2(256 CHAR),

departmentcn           VARCHAR2(256 CHAR),

provincecn             VARCHAR2(256 CHAR),

areacn                 VARCHAR2(256 CHAR),

isaccord               VARCHAR2(256 CHAR),

currentuserid          VARCHAR2(256 CHAR),

preprepremonthaccuracy VARCHAR2(256 CHAR),

preprepremonthscore    VARCHAR2(256 CHAR),

prepremonthaccuracy    VARCHAR2(256 CHAR),

prepremonthscore       VARCHAR2(256 CHAR),

premonthaccuracy       VARCHAR2(256 CHAR),

premonthscore          VARCHAR2(256 CHAR),

countscore             VARCHAR2(256 CHAR),

checktypecn            VARCHAR2(256 CHAR),

checktype              VARCHAR2(256 CHAR),

recoder                VARCHAR2(256 CHAR),

recodercn              VARCHAR2(256 CHAR),

month                  VARCHAR2(256 CHAR)

)

on commit preserve rows

SELECT * FROM mytesttemp

select * into mytesttemp  from UF_ASSESSMENTHISTORY

CREATE TABLE UF_ASSESSMENTHISTORY2 AS SELECT *   from UF_ASSESSMENTHISTORY

SELECT * FROM UF_ASSESSMENTHISTORY2

CREATE OR REPLACE PROCEDURE getdatefromtable

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

CREATE TABLE SFZ_TEST_MANAGER_XG(

yxgh VARCHAR2(100),

ygxm VARCHAR2(100),

position_name VARCHAR2(100)

);

insert into SFZ_TEST_MANAGER_XG values ('abc1','bcd1','cde1');

insert into SFZ_TEST_MANAGER_XG values ('abc2','bcd2','cde2');

insert into SFZ_TEST_MANAGER_XG values ('abc3','bcd3','cde3');

insert into SFZ_TEST_MANAGER_XG values ('abc4','bcd4','cde4');

SELECT * FROM SFZ_TEST_MANAGER_XG

DROP TABLE SFZ_TEST_MANAGER_XG;

CREATE   GLOBAL TEMPORARY TABLE SFZ_TEMP_MANAGER_XG(

yxgh VARCHAR2(100),

ygxm VARCHAR2(100),

position_name VARCHAR2(100)

)ON COMMIT PRESERVE ROWS;

DROP TABLE SFZ_TEMP_MANAGER_XG;

select * from SFZ_TEST_MANAGER_XG;

SFZ_TEMP_MANAGER_XG

select count(*) from SFZ_TEST_MANAGER_XG;

SELECT * FROM SFZ_TEMP_MANAGER_XG

create or replace package sfz_obj

as

type sfz_cursor is ref cursor;

procedure proc_sfz_proc_test(user_yxgh IN VARCHAR2,v_table out sfz_cursor);

end sfz_obj;

create or replace package body sfz_obj as

procedure proc_sfz_proc_test(user_yxgh IN VARCHAR2,v_table out sfz_cursor)

is

BEGIN

INSERT INTO SFZ_TEMP_MANAGER_XG(YXGH,YGXM,POSITION_NAME) SELECT YXGH,YGXM,POSITION_NAME FROM SFZ_TEST_MANAGER_XG;

--insert into SFZ_TEMP_MANAGER_XG values ('abc','bcd','cde');

--insert into SFZ_TEMP_MANAGER_XG values ('abc','bcd','cde');

--insert into SFZ_TEMP_MANAGER_XG values ('abc','bcd','cde');

--insert into SFZ_TEMP_MANAGER_XG values ('abc','bcd','cde');

open v_table for select * from SFZ_TEMP_MANAGER_XG;

end proc_sfz_proc_test;

end sfz_obj;

SELECT * FROM SFZ_TEMP_MANAGER_XG

select * from product_component_version;

create or replace procedure area

is

num number ;

v_areaRecord  dual%ROWTYPE;

begin

select 12345 into num from dual;

end area;

begin

commit;

end;

CREATE OR REPLACE PROCEDURE Proc_Insert2(P_CURSOR OUT TESTPACKAGE.TEST_CURSOR,

yearandmonth IN VARCHAR2,

checktypeid IN VARCHAR2,

departmentid IN VARCHAR2,

curtuerid IN VARCHAR2)

IS

str_sql varchar2(4000):='';

amountmonth varchar2(400):='';

amountmonth2 varchar2(400):='';

amountmonth3 varchar2(400):='';

BEGIN

amountmonth:=getmonthFunc(''||yearandmonth||'',-1);

amountmonth2:=getmonthFunc(''||yearandmonth||'',-2);

amountmonth3:=getmonthFunc(''||yearandmonth||'',-3);

str_sql:='INSERT INTO UF_MONTHASSESSMENTTEMPORARY

(id,

department,

province,

area,

customercode,

customer,

productcode,

product,

price,

amountexpect,

amounthistory,

departmentcn,

provincecn,

areacn,

year,

month,

isaccord,

currentUserId

)

SELECT aa.id,

aa.DEPARTMENT,

aa.PROVINCE,

aa.AREA,

aa.CUSTOMERCODE,

aa.CUSTOMER,

aa.PRODUCTCODE,

aa.PRODUCT,

aa.PRICE,

aa.AMOUNTEXPECT,

aa.AMOUNTHISTORY,

aa.DEPARTMENTCN,

aa.PROVINCECN,

aa.AREACN,

aa.YEARBUDGET,

aa.monthbudget,

aa.ISACCORD,

'''||curtuerid||'''currentUserId from (

SELECT zz.id,

zz.DEPARTMENT,

zz.PROVINCE,

zz.AREA,

zz.CUSTOMERCODE,

zz.CUSTOMER,

zz.PRODUCTCODE,

zz.PRODUCT,

zz.PRICE,

zz.AMOUNTEXPECT,

zz.AMOUNTHISTORY,

zz.DEPARTMENTCN,

zz.PROVINCECN,

zz.AREACN,

zz.YEARBUDGET,

zz.monthbudget,

CASE when zz.lv between zz.startlv and zz.endlv then 1 else 0 end as ISACCORD from (

SELECT

uf1.id,

uf1.DEPARTMENT,

uf1.PROVINCE,

uf1.AREA,

uf1.CUSTOMERCODE,

uf1.CUSTOMER,

uf1.PRODUCTCODE,

uf1.PRODUCT,

uf1.PRICE,

uf1.monthprice1 AMOUNTEXPECT,

uf2.'||amountmonth2||' AMOUNTHISTORY,

uf1.DEPARTMENTCN,

uf1.PROVINCECN,

uf1.AREACN,

uf1.YEARBUDGET,

uf1.monthbudget,

1 as ISACCORD,

cc.startlv,

cc.endlv,

CASE NVL(UF2.'||amountmonth2||',0) WHEN ''0'' THEN 0 ELSE round(NVL(NVL(UF1.monthprice2, 0) / NVL(UF2.'||amountmonth2||', 0)*100, 0),2) END  lv

FROM UF_MONTHINCOMETEST UF1

LEFT JOIN UF_MIDTBMONTHLICBUDGET UF2

ON UF1.DEPARTMENT = UF2.DEPARTMENT

AND UF1.PRODUCTCODE = UF1.PRODUCTCODE

and uf1.customer=uf2.customercode

AND UF1.PROVINCE = UF2.PROVINCE

AND UF1.AREA = UF2.AREA

AND UF2.YEAR = getyearforNumFunc('''||yearandmonth||''',0)-1

left join (select (100-(100-getskuassessmenntLvFunc('''||yearandmonth||''',-2,'''||departmentid||''','''||checktypeid||'''))) startlv,(100+(100-getskuassessmenntLvFunc('''||yearandmonth||''',-2,'''||departmentid||''','''||checktypeid||'''))) endlv, getskuassessmenntLvFunc('''||yearandmonth||''',-2,'''||departmentid||''','''||checktypeid||''') ,year, department from uf_accuracyparameters  ) cc

on uf1.YEARBUDGET=cc.year and uf1.department=cc.department

WHERE UF1.DEPARTMENT = '''||departmentid||'''

AND UF1.YEARBUDGET =getyearforNumFunc('''||yearandmonth||''',-2)

and uf1.monthbudget=getmonthforNumFunc('''||yearandmonth||''',-2) ) zz

) aa';

execute immediate str_sql;

OPEN P_CURSOR FOR

SELECT * FROM UF_MONTHASSESSMENTTEMPORARY;

END Proc_Insert2;

调用:

begin

Proc_Insert3('2014-11','297e57f448a1a8220148a56095613717','8a8ad0a038d53d3a0138d58b16cf006b','111111');

commit;

end;

PROCEDURE 和 function 区别:

1.procedure 中调用 function 时 function 变量 用''||XXXX||'', 然而produre中则用'''||||'''

2.function sql 查询字段的话 字段不可以拼变量

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

DROP TABLE UF_MONTHASSESSMENTTEMPORARY

create table UF_MONTHASSESSMENTTEMPORARY

(

id            VARCHAR2(32 CHAR) not null,

requestid     VARCHAR2(32 CHAR),

nodeid        VARCHAR2(32 CHAR),

rowindex      VARCHAR2(100 CHAR),

customer      VARCHAR2(256 CHAR),

customercode  VARCHAR2(256 CHAR),

productcode   VARCHAR2(256 CHAR),

product       VARCHAR2(256 CHAR),

year          VARCHAR2(32 CHAR),

updatedate    VARCHAR2(32 CHAR),

isdelete      INTEGER default 0,

department    VARCHAR2(256 CHAR),

province      VARCHAR2(256 CHAR),

area          VARCHAR2(256 CHAR),

price         VARCHAR2(256 CHAR),

numbers       VARCHAR2(256 CHAR),

amountexpect  VARCHAR2(256 CHAR),

amounthistory VARCHAR2(256 CHAR),

month         VARCHAR2(256 CHAR),

departmentcn  VARCHAR2(256 CHAR),

provincecn    VARCHAR2(256 CHAR),

areacn        VARCHAR2(256 CHAR),

isaccord      VARCHAR2(256 CHAR),

currentuserid VARCHAR2(256 CHAR),

recodercn     VARCHAR2(256 CHAR),

recoder       VARCHAR2(256 CHAR)

)

;

alter table UF_MONTHASSESSMENTTEMPORARY

add primary key (ID);

文章评论

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/573287.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Oracle优化 -- 关于Database Buffer Cache相关参数DB_CACHE_SIZE的优化设置

select size_for_estimate, buffers_for_estimate ,ESTD_PHYSICAL_READ_factor,ESTD_PHYSICAL_READS from v$db_cache_advice 2 where block_size8192 and advice_statusON; 中,size_for_estimate表示预计的数据库高速缓冲区的大小(即&#xff1…

php 注入是什么意思,如何理解ThinkPHP框架里的依赖注入?

依赖注入,你可以分开理解。拆成,依赖和注入依赖:就是你现在要用 request 对象的get 方法,所有你必须要先能得到request对象,然后才能使用这个方法。这个就是依赖。注入:怎么得到request 对象呢?…

iOS - UITextField

前言 NS_CLASS_AVAILABLE_IOS(2_0) interface UITextField : UIControl <UITextInput, NSCoding>available(iOS 2.0, *) public class UITextField : UIControl, UITextInput, NSCoding 1、UITextField 的创建 Objective-C // 实例化 UITextField 对象UITextFi…

oracle一般人能不能学,Oracle人门学习笔记

1.如何显示当前用户是谁?show user;2.进入sql*plus管理工具&#xff0c;运行里面输入sqlplusw就可以了。3.disc断开当前数据库的连接4.passw修改密码命令示例&#xff1a;passw 回车更改snapall的口令旧口令&#xff1a;*******新口令&#xff1a;******重新键入新口令&#x…

欧拉图

欧拉路径&#xff1a;每条边经过且只经过一次的路径 欧拉回路&#xff1a;如果从某个点出发&#xff0c;经过且只经过每条边一次&#xff0c;最后又回到这个点的路径 欧拉图&#xff1a;存在欧拉回路的图 图&#xff1a; 平凡图&#xff1a;只含有一个点 重边&#xff1a;两点之…

oracle rac standby,oracle RAC数据库建立STANDBY(二)

这篇文章描述为RAC环境创建STANDBY数据库。由于篇幅限制&#xff0c;加上碰到了很多的bug&#xff0c;只能将文章拆分成多篇。这章介绍STANDBY数据库创建的后续操作&#xff0c;并检查STANDBY运行机制&#xff1a;首先登陆实例&#xff0c;检查数据库状态&#xff1a;bash-3.00…

[MySQL] MySQL x64 下载地址

MySQLhttp://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.14-winx64.ziphttp://dev.mysql.com/get/Downloads/MySQLInstaller/mysql-installer-community-5.7.14.0.msiPHP ServerWampServer2.1d-x64.exe转载于:https://www.cnblogs.com/Areas/p/5759195.html

微信php翻译和天气预报整合,微信公众平台天气预报功能开发

本来是想自己直接从中国天气网获取信息并处理&#xff0c;后来发现处理起来太麻烦&#xff0c;而且要获取所有城市的城市编码&#xff0c;再有就是&#xff01;不支持国外天气&#xff01;&#xff01;(我们学校有很多毕业生在国外上学&#xff0c;所以我考虑还是做出支持国外天…

关于Jenkins找不到依赖Jar包问题

昨晚在Jenkins发布时遇到一个Jar包找不到的问题&#xff0c;控制台的报错信息如下&#xff1a; 说白了就是找不到依赖的Jar包&#xff0c;但是当我们回退到灰度的时候发现灰度的环境是构建是没有问题的&#xff0c;为什么同一套代码在两个环境却有天壤之别呢&#xff0c;本着试…

查看Linux服务器运行级别命令,linux命令1、如何查看当前的Linux服务器的运行级别?...

1、如何查看当前的Linux服务器的运行级别&#xff1f;答: ‘who -r’ 和 ‘runlevel’ 命令可以用来查看当前的Linux服务器的运行级别。2、如何查看Linux的默认网关&#xff1f;答: 用 “route -n” 和 “netstat -nr” 命令&#xff0c;我们可以查看默认网关。除了默认的网关信…

BIEE入门(一)架构

BIEE作为Oracle的新的商业智能平台企业版&#xff0c;起源于Oracle所收购的Siebel公司&#xff0c;BIEE原来叫做Siebel Analytic&#xff0c;但是Siebel也不是它的发明者&#xff0c;它是Siebel在2001年收购的另一个公司叫nQuire software的产品&#xff0c;这个从它的配置文件…

redhat linux 9.0 拷贝u盘的文件,肿么用U盘安装Linux,安装的是red hat 9.0…用Ubuntu很方便,redhat可以吗?...

下面有两种安装方法.从dos安装.这方法可以不用软盘,比较方便.得到dosutils目录这个目录里有从dos安装和软盘安装的工具.一般都在第一个iso文件里.在linux下可以这样装载iso文件.mount -o loop valhalla-i386-disc1.iso /mnt/cdromcd /mnt/cdromcd -r images /mnt/c 把dosutils目…

获得当前字符串的宽度

<!DOCTYPE html><html lang"en"><head> <meta charset"UTF-8"> <title>获得当前字符串的宽度</title> <script type"text/javascript" src"jquery-min.js"></script></…

linux需要的GLIBCXX版本,linux-如果我已经安装了GLIBCXX_4.1.2,则需要GLIBCXX_3.4.9吗?

我正在Fedora 8/9 64位(http://mediainfo.sourceforge.net/es/Download/Fedora)上安装MediainfoDLL的最新版本.我下载了libmediainfo-0.7.20和libzen0-0.4.3文件.当我尝试安装libzen0时,得到以下输出&#xff1a;# rpm -i libzen0-0.4.3-1.x86_64.Fedora_9.rpmwarning: libzen0…

小小动画

<script src"JS/jquery-1.7.2.min.js"></script><style type"text/css">* {margin: 0px;padding: 0px;}#dw {position: absolute;width: 200px;height: 70px;font-family: 迷你简书魂;font-size: 50px;}#zhezhao {position: absolute;wi…

linux so文件统一目录,linux加载指定目录的so文件

例如&#xff0c;有个so在/tmp/libs/libzmq.so.3&#xff1a;[winlindev6 libs]$ ls /tmp/libs/ -lhtotal 2.5Mlrwxrwxrwx 1 winlin winlin 15 Dec 12 12:58 libzmq.so -> libzmq.so.3.0.0lrwxrwxrwx 1 winlin winlin 15 Dec 12 12:58 libzmq.so.3 -> libzmq.so.3.0.0-rw…

VBS基础篇 - Dictionary对象

VBS基础篇 - Dictionary对象 Dictionary是存储数据键和项目对的对象&#xff0c;其主要属性有Count、Item、Key&#xff0c;主要方法有Add、Exists、Items、Keys、Remove、RemoveAll。 建立字典 Dim Dict : Set Dict CreateObject("Scripting.Dictionary")添加键值对…

linux编译mesa,如何在Ubuntu 16.04,17.10中安装Mesa 17.3.3

最新的MESA 3D图形库17.3.3现在在Ubuntu-X team PPA存储库中为Ubuntu 16.04和Ubuntu 17.10提供。Mesa 17.3.3实现了OpenGL 4.5 API&#xff0c;但由glGetString(GL_VERSION)或glGetIntegerv(GL_MAJOR_VERSION)/glGetIntegerv(GL_MINOR_VERSION)报告的版本取决于所使用的特定驱动…

iOS开发Swift篇—(三)字符串和数据类型

一、字符串 字符串是String类型的数据&#xff0c;用双引号""包住文字内容 let website "http://www.github.com" 1.字符串的常见操作 &#xff08;1&#xff09;用加号 做字符串拼接 let scheme "http://" let path “www.github.com” le…

linux查看xml文件的配置,3、kvm虚拟机日常管理与配置

KVM虚拟机的管理主要是通过virsh命令对虚拟机进行管理。1. 查看KVM虚拟机配置文件及运行状态(1) KVM虚拟机默认配置文件位置: /etc/libvirt/qemu/autostart目录是配置kvm虚拟机开机自启动目录。(2) virsh命令帮助# virsh -help或直接virsh命令和&#xff0c;再执行子命令。如下…