Oracle 11g cast
Hi All,
I've faced one issue with Oracle 11g.
In Oracle 10g when you do:
create table Test as
select Cast(SomeField as nvarchar2(1)) as SomeField from Other_table;
if SomeField type is number(5) and it has value 11 - following error message will be generated:
ORA-12899: value too large for column ???
(actual: 3, maximum: 1)
and that is fair. In Oracle 11g the same operation inserts truncated values i.e. 1 in this example.
Is there a way to make it wok in 11g in the same way as 10g except compatibility parameter changes?
Thank you in advance.
I don't have access to 10g - just 9.2.0.8 vs 11.2.0.2.
See the following output:
SQL> select * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE 9.2.0.8.0 Production
TNS for Solaris: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
SQL>
SQL> select cast('11' as nvarchar2(1)) col1 from dual;
C
1
SQL>
SQL> select cast(11 as nvarchar2(1)) col1 from dual;
select cast(11 as nvarchar2(1)) col1 from dual
ERROR at line 1:
ORA-25137: Data value out of range
SQL>
SQL> create table dom1
2 (col1 number(5)
3 ,col2 varchar2(5));
Table created.
SQL>
SQL> insert into dom1 values (11,'11');
1 row created.
SQL>
SQL> select cast(col1 as nvarchar2(1)) from dom1;
select cast(col1 as nvarchar2(1)) from dom1
ERROR at line 1:
ORA-25137: Data value out of range
SQL>
SQL> select cast(col2 as nvarchar2(1)) from dom1;
select cast(col2 as nvarchar2(1)) from dom1
ERROR at line 1:
ORA-01401: inserted value too large for column
SQL>
SQL> create table dom2 as
2 select Cast(col1 as nvarchar2(1)) as col1 from dom1;
select Cast(col1 as nvarchar2(1)) as col1 from dom1
ERROR at line 2:
ORA-25137: Data value out of range
SQL>
SQL> create table dom2 as
2 select Cast(col2 as nvarchar2(1)) as col2 from dom1;
select Cast(col2 as nvarchar2(1)) as col2 from dom1
ERROR at line 2:
ORA-01401: inserted value too large for column
SQL> vs
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL>
SQL> select cast('11' as nvarchar2(1)) col1 from dual;
C
1
SQL>
SQL> select cast(11 as nvarchar2(1)) col1 from dual;
select cast(11 as nvarchar2(1)) col1 from dual
ERROR at line 1:
ORA-25137: Data value out of range
SQL>
SQL> create table dom1
2 (col1 number(5)
3 ,col2 varchar2(5));
Table created.
SQL>
SQL> insert into dom1 values (11,'11');
1 row created.
SQL>
SQL> select cast(col1 as nvarchar2(1)) from dom1;
select cast(col1 as nvarchar2(1)) from dom1
ERROR at line 1:
ORA-25137: Data value out of range
SQL>
SQL> select cast(col2 as nvarchar2(1)) from dom1;
select cast(col2 as nvarchar2(1)) from dom1
ERROR at line 1:
ORA-01401: inserted value too large for column
SQL>
SQL> create table dom2 as
2 select Cast(col1 as nvarchar2(1)) as col1 from dom1;
select Cast(col1 as nvarchar2(1)) as col1 from dom1
ERROR at line 2:
ORA-25137: Data value out of range
SQL>
SQL> create table dom2 as
2 select Cast(col2 as nvarchar2(1)) as col2 from dom1;
select Cast(col2 as nvarchar2(1)) as col2 from dom1
ERROR at line 2:
ORA-01401: inserted value too large for column
SQL>
Similar Messages
-
Problem running this in Oracle 11g, This was working fine in Oracle 10g
Hi Friends,
I used the following procedure "GIVE_ME_AN_ARRAY" in Crystal Report Version 11, using Oracle 10g and it was running fine, however when I created the following in Oracle 11g, all these objects created without any error, and when I call Procedure "GIVE_ME_AN_ARRAY" in Crystal Report 11 as well as in Microsoft Report Builder 2.0, following error occured.
ORA-03113:- End of Communication Channel
Please note, the said Procedure runs fine :-
1. if I remove remaining part of UNION ALL Query in Procedure and compile.
2. if I don't remove UNION ALL, but remove the following line.
WHERE empno IN
(select * from THE
( select cast( in_list(memp) as
mytableType ) from dual ) a)
Any Idea what am I missing ?
My main task is to pass multiple strings to use 'IN' Operator in query.
Please help me out.
Thanks and Regards,
Luqman
create or replace type myTableType
as table of varchar2 (255);
create or replace function in_list( p_string in varchar2)
return myTableType
as
l_string long default p_string || ',';
l_data myTableType := myTableType();
n number;
begin
loop
exit when l_string is null;
n := instr( l_string, ',' );
l_data.extend;
l_data(l_data.count) :=
ltrim( rtrim( substr( l_string, 1, n-1 ) ) );
l_string := substr( l_string, n+1 );
end loop;
return l_data;
end;
CREATE OR REPLACE PROCEDURE give_me_an_array (
CV IN OUT sys_refcursor, memp in varchar2
IS
BEGIN
OPEN CV FOR
SELECT empno,
ename
FROM emp
WHERE empno IN
(select * from THE
( select cast( in_list(memp) as
mytableType ) from dual ) a)
UNION ALL
SELECT empno,
ename
FROM emp
WHERE empno IN
(select * from THE
( select cast( in_list(memp) as
mytableType ) from dual ) a);
END give_me_an_array;..is the "THE" operator still supported?
I know this was the case in Oracle 8i, but later?... you can try using the "TABLE" operator instead. -
Oracle 8i hase Time series for defining calendars and other functions. How does Oracle 10g/11g support Time series features. I could not find any information about Time Series in the 10g/11g documentation.
Thanks a lot for the responses.
I looked at the 11g Pivot operator and is altogether a new feature compared to the Time series of 8i.
I would like to explain with an example.
1) The following query creates a table named stockdemo_calendars and defines a calendar
named BusinessDays. The BusinessDays calendar includes Mondays through Fridays,
but excludes 28-Nov-1996 and 25-Dec-1996. Explanatory notes follow the example.
CREATE TABLE stockdemo_calendars of ORDSYS.ORDTCalendar (
name CONSTRAINT calkey PRIMARY KEY);
INSERT INTO stockdemo_calendars VALUES(
ORDSYS.ORDTCalendar(
0
’BusinessDays’,
4,
ORDSYS.ORDTPattern(
ORDSYS.ORDTPatternBits(0,1,1,1,1,1,0),
TO_DATE(’01-JAN-1995’,’DD-MON-YYYY’)),
TO_DATE(’01-JAN-1990’,’DD-MON-YYYY’),
TO_DATE(’01-JAN-2001’,’DD-MON-YYYY’),
ORDSYS.ORDTExceptions(TO_DATE(’28-NOV-1996’,’DD-MON-YYYY’),
TO_DATE(’25-DEC-1996’,’DD-MON-YYYY’)),
ORDSYS.ORDTExceptions()
-------------- How can I create such calendars in 11g?
2) For example, the following statement returns the last closing prices for stock
SAMCO for the months of October, November, and December of 1996:
select * from the
(select cast(ORDSYS.TimeSeries.ExtractTable(
ORDSYS.TimeSeries.ScaleupLast(
ts.close,
sc.calendar,
to_date(’01-OCT-1996’,’DD-MON-YYYY’),
to_date(’01-JAN-1997’,’DD-MON-YYYY’)
) as ORDSYS.ORDTNumTab)
from tsdev.stockdemo_ts ts, tsdev.scale sc
where ts.ticker=’SAMCO’ and
sc.name =’MONTHLY’);
This example might produce the following output:
TSTAMP VALUE
01-OCT-96 42.375
01-NOV-96 38.25
01-DEC-96 39.75
3 rows selected.
--------------------- How can I get the above ouput without Time series functions and calendars in Oracle 11g? -
Conversion functions in Oracle 11g Express;HEXTORAW &RAWTOHEX
hi everybody !
hextoraw ('0041') must return A but it doesn't return this value ,,it returns 0041
I'm using Oracle 11g Express
select hextoraw('0041') from dual; --> 0041 ? but must return A
why is that ?
please help me
thank youHextoraw takes your hexadecimal 41 and transforms to a single byte containing the decimal value 65 in a RAW datatype.
But a RAW datatype can contain anything - it can be binary data, it can be text data.
So your client cannot safely just show it as text - it performs an implicit rawtohex for you and displays the RAW data in hexadecimal form:
SQL> select hextoraw('414243') val from dual;
VAL
414243You need to explicitly tell Oracle that this particular RAW value is actually text and not something binary.
For that you can use a casting function:
SQL> select utl_raw.cast_to_varchar2(hextoraw('414243')) val from dual;
VAL
ABCWhen cast to a varchar2, Oracle now knows it is text data and can display it. -
The java error which i meet in the oracle 11g when i using jdm
I have finish a java data mining program,it can work in oracle 10g.But now ,i have to apply this program in oracle 11g.
What should i do to make it still work in oracle 11g?
The jar have been replaced with 11g's jar.But when i debug the program,the BuildTask's m_ programName is still "dmsys.build_program" and it should be "sys.build_program".
Then when run to the executeTask,the Error occurred.
**************the error**********************************
19:19:55,734 DEBUG AprioriExecuteUtil:248 - ---------------------------------------------------
19:19:55,734 DEBUG AprioriExecuteUtil:249 - --- Build Model ---
19:19:55,734 DEBUG AprioriExecuteUtil:250 - ---------------------------------------------------
19:21:52,328 ERROR AprioriExecuteUtil:114 - executeError:
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.dmt.jdm.task.OraBuildTask.mapJobArgs(OraBuildTask.java:410)
at oracle.dmt.jdm.base.OraTask.retrieveObjectFromDatabase(OraTask.java:535)
at oracle.dmt.jdm.base.OraTask.removeTaskContents(OraTask.java:229)
at oracle.dmt.jdm.base.OraTask.removeObjectFromDatabase(OraTask.java:214)
at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.removeObject(OraPersistanceManagerImpl.java:297)
at oracle.dmt.jdm.resource.OraConnection.removeObject(OraConnection.java:389)
at oracle.dmt.jdm.OraMiningObject.saveObjectInDatabase(OraMiningObject.java:150)
at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.saveObject(OraPersistanceManagerImpl.java:245)
at oracle.dmt.jdm.resource.OraConnection.saveObject(OraConnection.java:383)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.executeTask(AprioriExecuteUtil.java:324)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.buildModel(AprioriExecuteUtil.java:303)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.execute(AprioriExecuteUtil.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
So,if there someone know the reason,please tell me how to solve this error.Thank you!!!!Thanks for your response!
The JDK version is 1.6.0_02.
DB version is 11.2.0.1.0.
This is the code.
public class AprioriExecuteUtil {
private static Logger logger=Logger.getLogger(AprioriExecuteUtil.class);
* 连接数据库对象
private static Connection m_dmeConn;
private static ConnectionFactory m_dmeConnFactory;
* 在进程中使用的工厂对象
private static PhysicalDataSetFactory m_pdsFactory;
private static PhysicalAttributeFactory m_paFactory;
private static AssociationSettingsFactory m_assoFactory;
private static RulesFilterFactory m_filterFactory;
private static BuildTaskFactory m_buildFactory;
* 全局常量
private static DecimalFormat m_df = new DecimalFormat("##.####");
* modelId:数据挖掘模型Id
private String modelId = "";
*<p>Title: execute</p>
*<p>Description:执行数据挖掘,响应页面上的执行按钮</p>
* @param @return 设定文件
* @return String 返回类型
* @throws
public String execute(){
try{
dataminingManager().updateModelById(modelId, "schedule", "10");
dataminingManager().updateModelById(modelId, "startTime", DateUtil.getNow());
dataminingManager().updateModelById(modelId, "endTime", "");
dataminingManager().deleteModelRules(modelId,"TblSpModelRulesAr");
m_dmeConnFactory = new OraConnectionFactory();
ConnectionSpec connSpec = m_dmeConnFactory.getConnectionSpec();
connSpec.setURI("jdbc:oracle:thin:@"+SystemParamUtil.getSystemParameValue("数据挖掘.数据库.地址"));
connSpec.setName(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名"));
connSpec.setPassword(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.密码"));
m_dmeConn = m_dmeConnFactory.getConnection(connSpec);
clean();
initFactories();
prepareData();
dataminingManager().updateModelById(modelId, "schedule","20");
buildModel();
dataminingManager().updateModelById(modelId, "schedule","100");
dataminingManager().updateModelById(modelId, "endTime", DateUtil.getNow());
clean();
return null;
}catch(Exception e) {
logger.error("executeError:",e);
return "error";
finally {
try {
m_dmeConn.close();
} catch(Exception e) {
logger.error("closeConnectError:",e);
return "error";
*<p>Title: clean</p>
*<p>Description:清理所有之前构造的临时表</p>
* @param 设定文件
* @return void 返回类型
* @throws
public void clean(){
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
Statement stmt = null;
try{
stmt = dbConn.createStatement();
StringBuffer sql = new StringBuffer("select object_name from dba_objects where object_type in('TABLE','VIEW') and object_name like '%DM$%' ");
sql.append("and owner = '").append(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名")).append("'");
logger.info(sql.toString());
ResultSet rs = stmt.executeQuery(sql.toString());
while(rs.next()){
try{
stmt.executeUpdate("DROP VIEW "+rs.getString("object_name"));
}catch(SQLException e){}
try{
stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_V");
} catch(SQLException e) {}
try{
stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_AR_V");
} catch(SQLException e) {}
try {
m_dmeConn.removeObject("arModel_jdm", NamedObject.model );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arSettings_jdm", NamedObject.buildSettings );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arBuildData_jdm", NamedObject.physicalDataSet );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arBuildTask_jdm", NamedObject.task );
}catch(JDMException e) {}
}catch(SQLException e) {
logger.error("cleanViewError:",e);
}finally{
try {
stmt.close();
}catch(Exception e){
logger.error("closeConnectError:",e);
*<p>Title: initFactories</p>
*<p>Description:初始化挖掘使用的工厂</p>
* @param @throws JDMException 设定文件
* @return void 返回类型
* @throws
public void initFactories() throws JDMException{
m_pdsFactory = (PhysicalDataSetFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalDataSet");
m_paFactory = (PhysicalAttributeFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalAttribute");
m_assoFactory = (AssociationSettingsFactory)m_dmeConn.getFactory("javax.datamining.association.AssociationSettings");
m_buildFactory = (BuildTaskFactory)m_dmeConn.getFactory("javax.datamining.task.BuildTask");
m_filterFactory = (RulesFilterFactory)m_dmeConn.getFactory("javax.datamining.association.RulesFilter");
*<p>Title: prepareData</p>
*<p>Description:准备数据</p>
* @param @throws Exception 设定文件
* @return void 返回类型
* @throws
public void prepareData() throws Exception{
logger.debug("---------------------------------------------------");
logger.debug("--- Prepare Data ---");
logger.debug("---------------------------------------------------");
this.createBuildData();
this.executeColumnFormatTransformation();
*<p>Title: createBuildData</p>
*<p>Description:用之前选择的产品构造视图</p>
* @param @throws Exception 设定文件
* @return void 返回类型
* @throws
public void createBuildData() throws Exception{
logger.debug("Create build data view...");
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
TblSpDataMiningModel dataMiningmodel = dataminingManager().getDataMiningModel(modelId);
StringBuffer createView = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_V AS SELECT cp.user_no as USER_NO, cp.product_id as PRODUCT_ID, 1 has_it ");
createView.append(" from ").append(custProductTableName).append(" cp ");
createView.append(" where cp.area_code = '").append(dataMiningmodel.getArea()).append("' GROUP BY USER_NO, PRODUCT_ID");
logger.debug(createView.toString());
pStmt = dbConn.prepareStatement(createView.toString());
pStmt.execute();
public void executeColumnFormatTransformation() throws Exception{
logger.debug("Execute column format transformation...");
StringBuffer createNestedColumn = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_AR_V as ");
createNestedColumn.append(" SELECT D.USER_NO,CAST(MULTISET(SELECT DM_Nested_Numerical(C.PRODUCT_ID, has_it) FROM SALES_TRANS_CUST_V C ");
createNestedColumn.append(" WHERE C.USER_NO = D.USER_NO) AS DM_Nested_Numericals) CUSTPRODS FROM SALES_TRANS_CUST_V D group by D.USER_NO");
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
logger.debug(createNestedColumn.toString());
pStmt = dbConn.prepareStatement(createNestedColumn.toString());
pStmt.execute();
*<p>Title: buildModel</p>
*<p>Description:建立模型</p>
* @param @throws JDMException 设定文件
* @return void 返回类型
* @throws
public void buildModel() throws Exception{
logger.debug("---------------------------------------------------");
logger.debug("--- Build Model ---");
logger.debug("---------------------------------------------------");
PhysicalDataSet buildData = m_pdsFactory.create( "SALES_TRANS_CUST_AR_V", false );
PhysicalAttribute pa = m_paFactory.create("USER_NO", AttributeDataType.integerType, PhysicalAttributeRole.caseId );
buildData.addAttribute(pa);
m_dmeConn.saveObject("arBuildData_jdm", buildData, false );
AssociationSettings buildSettings = m_assoFactory.create();
//计算支持度和可信度以及最多分析多少个产品
/*java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
TblSpDataMiningModel dataMiningModel = dataminingManager().getDataMiningModel(modelId);
StringBuffer sql = new StringBuffer("select (trunc((count(*) /(count(distinct user_no) * count(distinct product_id))) * 50,2.2)) as destiny ");
sql.append(" from ").append(custProductTableName).append(" cp ");
sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("'");
logger.debug(sql.toString());
pStmt = dbConn.prepareStatement(sql.toString());
ResultSet res = pStmt.executeQuery();
Float density = 0F;
while(res.next()){
density = res.getFloat("destiny");
if(density!=0){
buildSettings.setMinSupport(density);
buildSettings.setMinConfidence(density);
logger.debug("density = "+density);
}else{
buildSettings.setMinSupport(10f);
buildSettings.setMinConfidence(10f);
sql = new StringBuffer("select round(avg(COUNT(product_id))) as maxLength ");
sql.append(" from ").append(custProductTableName).append(" cp ");
sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("' group by user_no ");
logger.debug(sql.toString());
pStmt = dbConn.prepareStatement(sql.toString());
res = pStmt.executeQuery();
int maxProductLength = 0;
while(res.next()){
maxProductLength = res.getInt("maxLength");
if(maxProductLength != 0 && maxProductLength >= 2){
buildSettings.setMaxRuleLength(maxProductLength);
logger.debug("maxProductLength = "+maxProductLength);
}else{
buildSettings.setMaxRuleLength(3);
logger.debug("maxProductLength = "+maxProductLength+" change to 3");
buildSettings.setMinSupport(1);
buildSettings.setMinConfidence(10);
buildSettings.setMaxRuleLength(3);
m_dmeConn.saveObject("arSettings_jdm", buildSettings, true );
BuildTask buildTask = m_buildFactory.create("arBuildData_jdm","arSettings_jdm","arModel_jdm");
buildTask.setDescription("arBuildTask_jdm" );
executeTask(buildTask,"arBuildTask_jdm");
AssociationModel model = (AssociationModel)m_dmeConn.retrieveObject("arModel_jdm", NamedObject.model);
if(buildSettings == null){
throw new Exception("Failure to restore build settings.");
}else{
displayAssociationRules( model );
*<p>Title: executeTask</p>
*<p>Description:执行任务</p>
* @param @param taskObj
* @param @param taskName
* @param @return
* @param @throws JDMException 设定文件
* @return boolean 返回类型
* @throws
public boolean executeTask(Task taskObj, String taskName) throws JDMException {
boolean isTaskSuccess = false;
m_dmeConn.saveObject(taskName, taskObj, true);
ExecutionHandle execHandle = m_dmeConn.execute(taskName);
logger.debug(taskName + " is started, please wait. ");
ExecutionStatus status = execHandle.waitForCompletion(Integer.MAX_VALUE);
isTaskSuccess = status.getState().equals(ExecutionState.success);
if( isTaskSuccess ) {
logger.debug(taskName + " is successful.");
} else {
logger.debug(taskName + " is failed.\nFailure Description: " +
status.getDescription() );
return isTaskSuccess;
247*******************the buildTask's m_programName is “dmsys.build_program” but it should be "sys.build_program" when i contact the 11g.I have tried many ways to compile the program,but it still can't be changed.
270*******************m_dmeConn.saveObject(taskName, taskObj, true);
the error:java.lang.ArrayIndexOutOfBoundsException: 0
If you need the data table
These are the sql :
-- Create table
create table TBL_MINING_CUST_HB
mobile_tele_no VARCHAR2(40),
area VARCHAR2(4),
user_dinner VARCHAR2(200),
re_flag VARCHAR2(2),
re_type VARCHAR2(40),
is_3gzd VARCHAR2(2),
arpu NUMBER,
net_on_duration NUMBER,
if_ring VARCHAR2(2),
if_gprs VARCHAR2(2),
gprs_fee NUMBER,
if_gprs_free VARCHAR2(2),
if_gprs_pkg VARCHAR2(2),
sms_fee NUMBER,
if_sms_free VARCHAR2(2),
if_sms_pkg VARCHAR2(2),
mms_fee NUMBER,
if_mms_pkg VARCHAR2(2),
if_mms_free VARCHAR2(2),
sen_fee NUMBER,
sen_in_fee NUMBER,
sen_out_fee NUMBER,
sen_free NUMBER,
sen_fact NUMBER,
one_cnt_10010 NUMBER,
three_cnt_10010 NUMBER,
one_cancel_business VARCHAR2(4000),
three_cancel_business VARCHAR2(4000),
sp VARCHAR2(4000)
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 64
next 1
minextents 1
maxextents unlimited
-- Add comments to the columns
comment on column TBL_MINING_CUST_HB.mobile_tele_no
is '电话号码';
comment on column TBL_MINING_CUST_HB.area
is '地市';
comment on column TBL_MINING_CUST_HB.user_dinner
is '用户套餐';
comment on column TBL_MINING_CUST_HB.re_flag
is '是否融合业务;1-是;0-否';
comment on column TBL_MINING_CUST_HB.re_type
is '套餐类别;2G后付费、2GOCS、3G后付费、3GOCS';
comment on column TBL_MINING_CUST_HB.is_3gzd
is '是否为3G终端(1-是,0非)';
comment on column TBL_MINING_CUST_HB.arpu
is 'ARPU;单位:元';
comment on column TBL_MINING_CUST_HB.net_on_duration
is '在网时长;单位:月';
comment on column TBL_MINING_CUST_HB.if_ring
is '是否开通炫铃功能,1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_gprs
is '是否开通GPRS功能,1-是;0-否';
comment on column TBL_MINING_CUST_HB.gprs_fee
is 'GPRS流量使用情况;单位: M';
comment on column TBL_MINING_CUST_HB.if_gprs_free
is '套餐内是否自带优惠或赠送流量;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_gprs_pkg
is '是否定制优惠流量包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.sms_fee
is '短信使用情况;单位:条';
comment on column TBL_MINING_CUST_HB.if_sms_free
is '套餐内是否自带优惠或赠送短信;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_sms_pkg
is '是否定制优惠短信包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.mms_fee
is '彩信使用情况;单位:条';
comment on column TBL_MINING_CUST_HB.if_mms_pkg
is '是否定制优惠彩信包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_mms_free
is '套餐内是否自带优惠或赠送彩信;1-是;0-否';
comment on column TBL_MINING_CUST_HB.sen_fee
is '本地长途合计分钟数;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_in_fee
is '本地长途省内长途;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_out_fee
is '本地长途省际长途;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_free
is '本地通话时长本地优惠分钟数;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_fact
is '本地通话时长实际使用分钟数:单位:分钟';
comment on column TBL_MINING_CUST_HB.one_cnt_10010
is '1月内拨打10010次数';
comment on column TBL_MINING_CUST_HB.three_cnt_10010
is '3月内拨打10010次数';
comment on column TBL_MINING_CUST_HB.one_cancel_business
is '1月内取消的增值业务';
comment on column TBL_MINING_CUST_HB.three_cancel_business
is '3月内取消的增值业务名称';
comment on column TBL_MINING_CUST_HB.sp
is '已开通的增值业务名称';
-- Create table
create table TBL_MINING_CUST_PRODUCT_HB
product_name VARCHAR2(1000),
product_id VARCHAR2(40),
user_no NUMBER,
area_code VARCHAR2(8)
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 16
next 1
minextents 1
maxextents unlimited
-- Create/Recreate indexes
create bitmap index IDX_PRODUCT_ID on TBL_MINING_CUST_PRODUCT_HB (PRODUCT_ID)
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
create bitmap index IDX_USER_NO on TBL_MINING_CUST_PRODUCT_HB (USER_NO)
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
-- Create table
create table TBL_MINING_PRODUCT_HB
product_name VARCHAR2(1000),
product_id VARCHAR2(30) not null,
coverage_rate NUMBER
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 16
next 1
minextents 1
maxextents unlimited
-- Add comments to the columns
comment on column TBL_MINING_PRODUCT_HB.product_name
is '产品名称';
comment on column TBL_MINING_PRODUCT_HB.product_id
is '产品ID';
comment on column TBL_MINING_PRODUCT_HB.coverage_rate
is '产品覆盖率=某一个产品的购买总数/所有产品的购买总数';
-- Create/Recreate primary, unique and foreign key constraints
alter table TBL_MINING_PRODUCT_HB
add constraint PK_PRODUCT_ID primary key (PRODUCT_ID)
using index
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
Thanks! -
Error while creating a JDBC connection to Oracle 11g using WLS 6.1
Hi
I am trying to connect to Oracle 11g database on Weblogic 6.1 server.
First of all i would like to know if this is compatible?
The environement that i have is this
1. JDK 1.3
2. Database 11g is on remote system
3. Oracle client on my local system ( Connecting to the 11g DB through the client works fine)
4. Weblogic server 6.1
5. Currently the application is connected to Oracle 10g DB and working fine(We are attempting to move it to 11g)
Below are the steps that i followed to create the connection:
1. Made an entry for the datasource in config.xml under <WLS_DOMAIN>/config folder as below
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
MaxCapacity="4" Name="CADConnectionPool"
Properties="user=abc_proxy;password=proxy_abc;dll=ocijdbc8;protocol=thin"
RefreshMinutes="5" ShrinkPeriodMinutes="10" Targets="CAsvr"
TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
TestTableName="dual" URL="jdbc:oracle:thin:@gen11t-ora.db.lab.xyz.com:1530:GEN11T"/>
2. Restarted the server.
3. Ran the application and get the following error on the server console:
<Aug 22, 2011 12:39:42 AM CDT> <Error> <JDBC> <Cannot startup connection pool "C
ADConnectionPool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.lang.ArrayIndexOutOfBoundsException
at oracle.security.o3logon.C0.r(C0)
at oracle.security.o3logon.C0.l(C0)
at oracle.security.o3logon.C1.c(C1)
at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientH
elper)
at oracle.jdbc.ttc7.O3log.<init>(O3log.java:289)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:251)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:193)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:134)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:705)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:650)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:360)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:285)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:239)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:199)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:360)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy31.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2977)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:372)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:360)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy42.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1234)
at weblogic.management.Admin.finish(Admin.java:644)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:524)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:207)
at weblogic.Server.main(Server.java:35)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:209)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:134)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:705)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:650)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:360)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:285)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:239)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:199)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:360)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy31.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2977)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:372)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:360)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy42.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1234)
at weblogic.management.Admin.finish(Admin.java:644)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:524)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:207)
at weblogic.Server.main(Server.java:35)
Can't load scjd12.dll, file not found java.library.path=C:\jdk1.3.1_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;.\bin;C:\P
rogram Files\Lotus\Notes\Data;C:\Program Files\Lotus\Notes;C:\Program Files\Java
\jre1.5.0_17\bin;C:\Program Files\Java\j2re1.4.2_06\bin;C:\Oracle\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\sys
tem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\sys
tem32\nls\ENGLISH;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Rational
\common;C:\Program Files\Rational\ClearCase\bin;C:\apache-ant-1.6.5\bin;C:\jdk1.
3.1_11\bin;C:\Program Files\Citrix\ICAService\;C:\Program Files\Citrix\System32\
;Z:.
<Aug 22, 2011 12:38:06 AM CDT> <Info> <JDBC> <Sleeping in createResource()>
<Aug 22, 2011 12:38:07 AM CDT> <Error> <JDBC> <Cannot startup connection pool "c
ispool" weblogic.common.ResourceException:
Could not load 'com.neon.jdbc.Driver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:212)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:134)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:705)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:650)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:360)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:285)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:239)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:199)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:360)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy31.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2977)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:372)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:360)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy42.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1234)
at weblogic.management.Admin.finish(Admin.java:644)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:524)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:207)
at weblogic.Server.main(Server.java:35)
Would like some help on this asap as the project is in critical stage.
ThanksThe driver being used by your weblogic is too old and incompatible with the DBMS. Upgrade the driver.
-
Oracle 11g Quartz Scheduler 1.8.5 running under JBOSS 5.1
Basically I'm getting this error when running Quartz configured for the jobStore
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreCMT
I've got two data sources setup.
One data source is setup to be looked up via JNDI (presumably for the one that may participate in distributed JTA XA transactions) and one that
supposedly is not to participate in JTA transactions in which quartz can call commit/rollback on it's own.
The problem I'm seeing with the interaction of the two is the following exception:
05:21:27,292 ERROR [TxPolicy] javax.ejb.EJBTransactionRolledbackException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [9
9999]; error code [29875];
--- The error occurred in XXXXX_COORDINATE_SqlMap.xml.
--- The error occurred while applying a parameter map.
--- Check the XXXX_COORDINATE.insert-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
ORA-29400: data cartridge error
ORA-14450: attempt to access a transactional temp table already in use
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 720
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 225
; nested exception is com.XXXXXibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in XXXXX_COORDINATE_SqlMap.xml.
--- The error occurred while applying a parameter map.
--- Check the XXXXX_COORDINATE.insert-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
ORA-29400: data cartridge error
ORA-14450: attempt to access a transactional temp table already in use
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 720
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 225
Has anyone seen this error before with the following configuration of Quartz 1.8.5, Oracle 11g, Oracle Spatial?
I've googled and seen reference to Oracle spatial using temp tables and not compatible with transactions... but not sure
exactly how to solve this problem.
Thanks in advacce.Hi;
Can any one advise me where and how can I download proper RPM packages and how do I resolve swap space requirement failure as mentioned above. Please let me know if further information required.You can find all related rpm from your DVD. For rpm please see below thread:
RPM confirmation
Re: Package install for oracle11gr2
For swap:
swap size increase-linux
How to increase swap size?
Regard
Helios -
Oracle 11g Installation problems
Hi there, Im a new Oracle's user, and I am trying to install Oracle 11g in my computer I have Windows Vista SP2 32bits, but I have a lot of problems.
The program send me various messages of Warnings and Errors so I couldnt finished the complete instalation and configuration.
Somebody can help me with some of this errors.
This are the errors: (In Spanish)
ORA-31011: Fallo en el analisis de XML
ORA-19202: Se ha producido un error en el procesamiento
ORA-06512: en "SYS.XMLTYPE", linea 272
ORA-06512: en "XDB.XDB_CONFIGURATION", linea 69
ORA-06512: en "XDB.DBMX_XDB", linea 209
ORA-06512: en "XDB.XDB_CONFIGURATION", linea 92
La configuración de Enterprise Manager ha fallado debido al
siguiente error:
Error al iniciar Database Control
Consulte el archivo log en C:\oraclecfgtoollogsdbca\orc\emConfig.log para obtener mas información
Posteriormente, puede reintentar la configuración de esta base de datos con
Enterprise Manager ejecutando manualmente el archivo de comandos C:\oracle\product\11.1.0\db_1\bin\emca
nstaller ha instalado productos en el grupo de componentes "Oracle Windows Interfaces".
Para soportar un desarrollo perfecto en Microsoft Visual Studio con la base de datos Oracle,
Oracle recomienda descargar e instalar la última versión de
"Oracle Developer Tools for Visual Studio .NET" de Oracle Technology Network.
I will aprecciatte your help.
Thank you!user12191943 wrote:
I have Windows Vista SP2 32bitsPlease specifiy WHICH edition of Vista. Oracle does have many problems with Vista Home. -
Oracle 11g install problem on rhel 4.4
i was trying to install oracle 11g to rhel 4.4
during the install process , there are two warning when runing environment check
one is kernal parameter
i set four kernal parameter like this:
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
but oracle warning me they should be set as 419430
the other is swap space :
i set 2G,but oracle needs 4G.
i neglect them and continue
but when the install proceed 11percent , it stoped there and the i pose the install log is :
INFO: Method 'dispose()' Not implemented in class 'CustomConfigurationOptions'
INFO: config-context initialized
INFO: *** Install Page***
INFO: FastCopy : File Version is Compatible
INFO: Install mode is fastcopy mode for component 'oracle.server' with Install type 'Custom'.
INFO: Link phase has been specified as needed
INFO: Setup phase has been specified as needed
INFO: HomeSetup JRE files in Scratch :0
INFO: Setting variable 'ROOTSH_LOCATION' to '/home/oracle/ora11/DB10g/root.sh'. Received the value from a code block.
INFO: Setting variable 'ROOTSH_LOCATION' to '/home/oracle/ora11/DB10g/root.sh'. Received the value from a code block.
INFO: Performing fastcopy operations based on the information in the file 'racfiles.jar'.
INFO: Performing fastcopy operations based on the information in the file 'oracle.server_Custom_exp_1.xml'.
INFO: Performing fastcopy operations based on the information in the file 'oracle.server_Custom_dirs.lst'.
INFO: Performing fastcopy operations based on the information in the file 'oracle.server_Custom_filemap.jar'.
INFO: Performing fastcopy operations based on the information in the file 'oracle.server_Custom_1.xml'.
INFO: Performing fastcopy operations based on the information in the file 'setperms1.sh'.
INFO: Number of threads for fast copy :1
INFO: FastCopy : The component info is ignored :oracle.network.cman:11.1.0.6.0
INFO: FastCopy : The component info is ignored :oracle.precomp.lang:11.1.0.6.0
INFO: FastCopy : The component info is ignored :oracle.odbc:11.1.0.6.0
INFO: FastCopy : The component info is ignored :oracle.rdbms.dv:11.1.0.6.0
INFO: FastCopy : The component info is ignored :oracle.rdbms.lbac:11.1.0.6.0
INFO: FastCopy : The component info is ignored :oracle.rdbms.dv.oc4j:11.1.0.6.0
INFO: FastCopy : The component info is ignored :oracle.odbc.ic:11.1.0.6.0
INFO: FastCopy : The component info is ignored :oracle.sysman.ccr:10.2.6.0.0
i do not know how to make it work ,please help me
thank you!This is the output from my current 11g installation on an OEL4:
Checking operating system package requirements ...
Checking for make-3.80; found make-1:3.80-6.EL4-i386. Passed
Checking for binutils-2.15.92.0.2; found binutils-2.15.92.0.2-21-i386. Passed
Checking for gcc-3.4.5; found gcc-3.4.6-3.1-i386. Passed
Checking for libaio-0.3.105; found libaio-0.3.105-2-i386. Passed
Checking for libaio-devel-0.3.105; found libaio-devel-0.3.105-2-i386. Passed
Checking for libstdc++-3.4.5; found libstdc++-3.4.6-3.1-i386. Passed
Checking for elfutils-libelf-devel-0.97; found elfutils-libelf-devel-0.97.1-3-i386. Passed
Checking for sysstat-5.0.5; found sysstat-5.0.5-11.rhel4-i386. Passed
Checking for libgcc-3.4.5; found libgcc-3.4.6-3.1-i386. Passed
Checking for libstdc++-devel-3.4.5; found libstdc++-devel-3.4.6-3.1-i386. Passed
Checking for unixODBC-2.2.11; found unixODBC-2.2.11-1.RHEL4.1-i386. Passed
Checking for unixODBC-devel-2.2.11; found unixODBC-devel-2.2.11-1.RHEL4.1-i386.
~ Madrid -
Oracle 11g ASM installation on HP UX 11.31 Risc
Hi All,
I am planning to install Oracle 11g ASM on HP UX 11.31 Risc machine. Is it possible to configure ASM without using RAW devices. If yes what is the procedure.
Thanks,I am planning to install Oracle 11g ASM on HP UX 11.31 Risc machine. Is it possible to configure ASM without using RAW devices. If yes what is the procedure.AFAIK, it is not possible.
-
Installing Oracle 11g on Ubuntu 8.04
Hello,
I am having a sleepless night trying to install Oracle 11g express on Ubuntu 8.04.
There is no server. I am actually trying to install on the exact box i am using.
I got this error again and again. Any pro and experts please help:
Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable.
127.0.0.1:0.0
127.0.0.1:0.0
=======================
oracle@sithkong-desktop:~/database$ DISPLAY=127.0.0.1:0.0
oracle@sithkong-desktop:~/database$ export DISPLAY
oracle@sithkong-desktop:~/database$ xclock
No protocol specified
Error: Can't open display: 127.0.0.1:0.0
oracle@sithkong-desktop:~/database$ ./runInstaller -ignoreSysPrereqs
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB. Actual 10751 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1915 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/X11R6/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
Ignoring required pre-requisite failures. Continuing...Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-08-29_10-22-59PM. Please wait ...oracle@sithkong-desktop:~/database$ Oracle Universal Installer, Version 11.1.0.6.0 Production
Copyright (C) 1999, 2007, Oracle. All rights reserved.
No protocol specified
Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable.
127.0.0.1:0.0
127.0.0.1:0.0
OUI-10025:Unable to start an interactive install session because of the following error:Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable. The DISPLAY environment variable should be set to <hostname or IP address>:<screen>, where the <screen> is usually '0.0'.
OUI-10026:Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh: % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
OUI-10027:To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
% <full path to xclock... see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for 'xclock': '/usr/X11R6/bin/xclock'http://www.pythian.com/news/968/installing-oracle-11g-on-ubuntu-804-lts-hardy-heron
HTH... -
Installer problem - Oracle 11g on Redhat ES 5.1 (x86)
Hi,
I'm trying to run the "runInstaller" script to install Oracle 11g onto my Redhat ES 5.1 (x86) machine and the following error is being reported:
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB. Actual 1409 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1407 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-01-10_04-46-50AM. Please wait ...Exception in thread "main" java.lang.NoClassDefFoundError: oracle/ewt/lwAWT/BufferedFrame
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
I copied all the installation tree to /tmp/oracle and ran chmod -R 777 * to make sure I could see all the files.
I've been logging onto the server as the oracle user.
I've also got Java v1.5.0.6 installed
I've run out of ideas - anyone able to assist ?I've sorted it. Was originally copy unzipped install files from DVD into /tmp but think there must have been some corruption. I now copied and unzipped the install file onto the RH machine and it's now working.
-
Installing Oracle 11g R2 on RHEL 5.9 server
Hi,
I've been trying to install Oracle 11g R2 on a Red Hat Enterprise Linux 5.9 server but have not succeeded thus far. The server meets all the software and hardware requirements for Oracle 11g Release 2 and when it also has all the prerequisite packages/ RPM's on it, when checked manually. I have set up the various kernel, semaphore and local port range parameters in accordance with the Oracle guides for installing Oracle on RHEL 5. I also followed the online guides to create the "oracle" user and set up the groups (oinstall, dba, oper and asm).
However, when I run the installer, it shows "Failed" for all the prerequisite checks. I tried to ignore this and install Oracle but it failed at 37% and gave multiple errors, related to invoking target 'XYZ' of different files including makefile and gcc.
I suspect that either the installer is unable to detect these packages as they already exist on our server or it is something to do around permissions to the groups. I read on these forums that it might be because of a "cvu" folder created inside /tmp that requires '777' permission but am not sure if that's what's causing our installation to fail.
Please let me know how to proceed with the installation and guide me through this.
Thanks.Hi, its Oracle 11g R2 - 2.0.3.6 .
The O.S is Linux x86_64
server: RHEL 5.9 (Takinga) with kernel: 2.6.18
I've been working on this all day today and have managed to overcome the errors regarding the missing/ failed packages. I've also verified that my kernel parameters are correct; I had missed the kernel shmmni parameter yesterday.
The installer now detects all the packages & runs till 86% when it gives the error: "error invoking target client_sharedlib of makefile".
Kindly let me know how to proceed. Thanks in advance ! -
Problem when installing Oracle 11g R2 x64 on rhel 5.8 x86_64
Hi All,
I’m trying to install oracle 11g software only to upgrade my database from 10g to 11g and i install all required packages listed in installation prerequisites but the below error appeared
error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile
$tail -15 $ORACLE_HOME/install/make.log
/oradata/db/tech_st/11.2.0/sysman/lib/ins_emagent.mk:52: warning: ignoring old commands for target `nmosudo' make -f /oradata/db/tech_st/11.2.0/sysman/lib/ins_emagent.mk relink_exe EXENAME=nmo make[1]: Entering directory `/oradata/db/tech_st/11.2.0/sysman/lib' /oradata/db/tech_st/11.2.0/sysman/lib/ins_emagent.mk:113: warning: overriding commands for target `nmosudo' /oradata/db/tech_st/11.2.0/sysman/lib/ins_emagent.mk:52: warning: ignoring old commands for target `nmosudo' gcc -o /oradata/db/tech_st/11.2.0/sysman/lib/nmo -L/oradata/db/tech_st/11.2.0/lib/ -L/oradata/db/tech_st/11.2.0/sysman/lib/ `cat /oradata/db/tech_st/11.2.0/lib/sysliblist` -lm `cat /oradata/db/tech_st/11.2.0/lib/sysliblist` -ldl -lm -L/oradata/db/tech_st/11.2.0/lib /oradata/db/tech_st/11.2.0/sysman/lib/s0nmo.o /oradata/db/tech_st/11.2.0/sysman/lib/libnmo.a -lcrypt -ldl `cat /oradata/db/tech_st/11.2.0/lib/sysliblist` -ldl -lm /bin/sh: cat: command not found /bin/sh: cat: command not found /bin/sh: cat: command not found /oradata/db/tech_st/11.2.0/sysman/lib/s0nmo.o: In function `main': s0nmo.c:(.text+0x1b): undefined reference to `__intel_new_proc_init' make[1]: Leaving directory `/oradata/db/tech_st/11.2.0/sysman/lib' collect2: ld returned 1 exit status make[1]: *** [/oradata/db/tech_st/11.2.0/sysman/lib/nmo] Error 1 make: *** [nmo] Error 2 EBS :12.0.4
Please help me in this issue. Thanks in advanceSeems you are trying to Install 32-bit 11g R2 on Linux RHEL 5 (64-bit) server fails with relinking errors - 'Mkldflags ntcontab.o nnfgt.o'
Please check following MOS Notes.
Install/Clone 32-bit 11GR2 Client On Linux x86_64 Fails With Error In Invoking Target 'Mkldflags ntcontab.o nnfgt.o' Of Makefile ins_net_client.mk (Doc ID 1473421.1) -
Installation of Oracle 11g on RHEL 5 (Listener cannot start )
Hello,
I have install Oracle 11g on my linux RHEL5. The installation was succesfull but cannot start the listener. The configuration of even the EM at the end of the installation for the same reason , Listener not started.
Trying to connect to my Listener i got the following error
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=karen)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST=karen)(PORT=2484)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
LSNRCTL> start
Starting /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
Can Some help troubleshoot this problem.
ThanksDear bezgodo!
Please execute the following commands and compare the results.
1.
hostname --fqdn2.
nslookup <your_ip_address>In both cases you should see the fully qualified hostname of your server.
Yours sincerely
Florian W.
Maybe you are looking for
-
Firewire video output in high def?
Hi all, I currently use a Canopus ADVC110 to firewire-output my video inside Logic to my beamer in "lo res" PAL DV format. However, the beamer supports up to 720p HD resolution so I'd like to have a firewire video output device than can handle this h
-
just bought lion, can't install, says S.M.A.R.T error!!, just bought lion, can't install, says S.M.A.R.T error!!
-
I have an iMac (circa Fall 2007) running OS 10.6.8 and whenever I am in a Google platform (or Yahoo also) it runs fine for a while then it suddenly turns dark and the screen is filled with parallel lines and crashes. The only way to get it up and ru
-
Changing File Media Type To Podcast
Hi, I am having issues with a podcast that I have to manually download. In the past, I would download the file and add it to iTunes. This would then have it show-up under the media library. I would then go and change the media type to podcast; thi
-
Hello, I have just detected an inconsistency in one of my SAP environment (Development). I have an invoice posted from the SD module, document type of this invoice is RV. If there is a reason to cancell this invoice, the transaction used is VF11. Th