oracle12c

Wildfly Failed to Load Module for Oracle Driver

眉间皱痕 提交于 2019-12-04 03:46:21
问题 I'm attempting to add an Oracle DB datasource to Wildfly 10. Here's what I have: <wildfly-home>\modules\com\oracle\ojdbc6\main\ module.xml ojdbc6.jar module.xml <?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:Wildfly:module:1.0" name="com.oracle.ojdbc6"> <resources> <resource-root path="ojdbc6.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.resource.api"/> <module name="javax.transaction.api"/> <!-- See * below --> </dependencies> </module> * I have

No usename HR in Oracle 12c

为君一笑 提交于 2019-12-04 03:16:55
问题 I have installed oracle 12c in my ubuntu. I use oracle through sqldeveloper and I can successfully connect to user sys with my password. I want to be able to use all databases provided by oracle by default. When I try to connect with username hr with the same password as in sys I get error username not found. select * from all_users doesn't list user hr . So I assume the user is not created at all. Should it not have been available by default, hr user? How can I configure such that I get the

Does Oracle 12 have problems with local collection types in SQL?

ぃ、小莉子 提交于 2019-12-03 11:21:29
To make a long story short I propose to discuss the code you see below. When running it: Oracle 11 compiler raises "PLS-00306: wrong number or types of arguments tips in call to 'PIPE_TABLE'" "PLS-00642: Local Collection Types Not Allowed in SQL Statement" Oracle 12 compiles the following package with no such warnings, but we have a surprise in runtime when executing the anonymous block as is - everything is fine (we may pipe some rows in the pipe_table function - it doesn't affect) now let's uncomment the line with hello; or put there a call to any procedure, and run the changed anonumous

Why does Oracle add a hidden column here?

纵饮孤独 提交于 2019-12-03 11:01:00
We recently migrated a customer system to Oracle 12c and to the latest version of our product. This process includes running a number of migration scripts which mostly add or change tables. We noticed that adding a column to a table while also providing a default value, creates an additional hidden column SYS_NC00002$ . You should be able to reproduce this with the following code create table xxx (a integer); alter table xxx add (b integer default 1); select table_name, column_name, data_type, data_length, column_id, default_length, data_default from user_tab_cols where table_name='XXX'; Table

Aggregate Overlapping Segments to Measure Effective Length

可紊 提交于 2019-12-03 10:57:27
问题 I have a road_events table: create table road_events ( event_id number(4,0), road_id number(4,0), year number(4,0), from_meas number(10,2), to_meas number(10,2), total_road_length number(10,2) ); insert into road_events (event_id, road_id, year, from_meas, to_meas, total_road_length) values (1,1,2020,25,50,100); insert into road_events (event_id, road_id, year, from_meas, to_meas, total_road_length) values (2,1,2000,25,50,100); insert into road_events (event_id, road_id, year, from_meas, to

Can't open View->DBA Menu in SQL Developer (Oracle 12C Standard Edition Installed)

心不动则不痛 提交于 2019-12-03 08:31:53
问题 I have installed Oracle 12C Standard Edition. Everything works fine there. I have also connected the Oracle SQL Developer Client 4.0. From that I can access the tables, indexes etc. I am trying to see the tablespace details from SQL Developer Client by clicking the View -> DBA menu. By clicking this menu, nothing is getting opened. Through EM I can able to see those. But I want to see through SQL developer. I am not sure, whether I need to do any settings, so that the View -> DBA menu can be

Aggregate Overlapping Segments to Measure Effective Length

萝らか妹 提交于 2019-12-03 02:30:01
I have a road_events table: create table road_events ( event_id number(4,0), road_id number(4,0), year number(4,0), from_meas number(10,2), to_meas number(10,2), total_road_length number(10,2) ); insert into road_events (event_id, road_id, year, from_meas, to_meas, total_road_length) values (1,1,2020,25,50,100); insert into road_events (event_id, road_id, year, from_meas, to_meas, total_road_length) values (2,1,2000,25,50,100); insert into road_events (event_id, road_id, year, from_meas, to_meas, total_road_length) values (3,1,1980,0,25,100); insert into road_events (event_id, road_id, year,

Oracle12c创建非公有用户方法

匿名 (未验证) 提交于 2019-12-03 00:26:01
2. 连接数据库 3.select con_id,dbid,NAME,OPEN_MODE from v$pdbs;//查看数据库 4.alter session set container=ORCLPDB;//设置容器为pbd,3步骤查询出来的第二列con_id; 5.打开 6.创建普通用户; 7.查看实例 8.在tns配置实例: 9.登陆实例为 orclpdb; 10.oracle12c的em谁会用麻烦告知下,谢谢 文章来源: Oracle12c创建非公有用户方法

Can't open View->DBA Menu in SQL Developer (Oracle 12C Standard Edition Installed)

时光总嘲笑我的痴心妄想 提交于 2019-12-02 23:54:43
I have installed Oracle 12C Standard Edition. Everything works fine there. I have also connected the Oracle SQL Developer Client 4.0. From that I can access the tables, indexes etc. I am trying to see the tablespace details from SQL Developer Client by clicking the View -> DBA menu. By clicking this menu, nothing is getting opened. Through EM I can able to see those. But I want to see through SQL developer. I am not sure, whether I need to do any settings, so that the View -> DBA menu can be opened. Attached Screenshot for reference: Here I am selecting the DBA option under View Menu But I don

Update duplicate rows only with a MAX function in SQL

99封情书 提交于 2019-12-02 19:51:22
问题 I have a table like this, where, suppose for the sake of an example, NAME is a unique identifier. NAME AGE VALUE Jack Under 65 3 Jack 66-74 5 John 66-74 7 John Over 75 9 Gill 25-35 11 Some NAME s have more than one AGE , which is undesirable, as this is due to dirtiness of the data. My aim is to update the duplicates only to have one AGE within each NAME . The desired output is thus: NAME AGE VALUE Jack Under 65 3 Jack Under 65 5 John 66-74 7 John 66-74 9 Gill 25-35 11 Something like this