PL/SQL :: Virtual Column In 11g?

Aug 19, 2013

I m migrating from 10g to 11g.I have doubt on virtual column.whether function based index and virtual column are same? if no means what difference between then.What are difference in their performance??

View 5 Replies


ADVERTISEMENT

SQL & PL/SQL :: Altering Virtual Column To Real Column?

Oct 4, 2011

Is there a way to alter an existing virtual column to set as a real column without dropping it and recreate (i have index on it, and i don't want to recreate them).

View 2 Replies View Related

SQL & PL/SQL :: ORA-01733 - Virtual Column Not Allowed Here

Nov 23, 2011

Does know why I am getting ORA-01733- virtual column not allowed here Following :

CREATE TABLE EMPL
(
EMP_ID NUMBER(10),
CNT NUMBER(10)
)
insert into empl(EMP_ID)
values(1)

[code]....

ORA-01733- virtual column not allowed here

View 33 Replies View Related

Can Index Be Created On Virtual Column?

May 17, 2011

what my issue is with this virtual column

CREATE TABLE C0HARPA.VCOL_TAB
(
col1 VARCHAR2(30 BYTE),
v_col1 VARCHAR2(6) GENERATED ALWAYS AS (SUBSTR(col1,1,6)) VIRTUAL
)
TABLESPACE TOOLS

[code]...

Lastly, can an index be created on a virtual column? I am thinking no since it calculated?

View 3 Replies View Related

PL/SQL :: How To Calculate Values And Display To Virtual Column

Mar 12, 2013

How I can build a query with conditions and calculations? E.g. I've got this table

Start          | End     |     Working Place     |     Mandatory
------------------------------------------------------------------------------------
01-JAN-13 | 11-JAN-13 |     Office           |          1
14-JAN-13 | 25-JAN-13 |     Home Office      |     0
04-MRZ-13| 15-MRZ-13 |     Office           |          0
11-FEB-13 | 22-FEB-13 |     Office           |          1

Now if column working place=Office and column mandatory=0
the new column "price" has to calculate: (End-Start)* $25.00
and if working place=Office and column mandatory=1
the "price" column has to calculate: (End-Start)* $20.60
else $0.00

I tried it with the case statement but I didn't know how to calculate my values and display it to the virtual column "price".

Something like
case
when Working_Place = 'Office' and Mandatory=1
then ...
else '0.00'
end as PRICE
?????

Or is it not possible?

View 5 Replies View Related

Server Utilities :: IMPDP Error ORA-31693 On Oracle Virtual Column With Not Null?

Jun 21, 2013

I am having issue with IMPDP on ORACLE VIRTUAL COLUMNS.I am having following table with Virtual column defined with Not null. Expdp is fine without any issue.

DDL :
------
CREATE TABLE alert_hist
(
alertky INTEGER NOT NULL,
alertcreatedttm TIMESTAMP(6) DEFAULT systimestamp NOT NULL,
alertcreatedt DATE GENERATED ALWAYS AS (To_date(Trunc("alertcreatedttm"))) VIRTUAL NOT NULL

When I do the import (IMPDP) it got failed with the following error.

. . imported "TESTSCHEMA"."VALART" 359.1 KB 4536 rows
ORA-31693: Table data object "TESTSCHEMA"."ALERT_HIST" failed to load/unload and is being skipped due to error:
ORA-39097: Data Pump job encountered unexpected error -1

After that I dropped the Virtual Not null column and recreated that column with Nullable.

DDL :
-----
alter table alert_hist drop column alertcreatedt;
alter table alert_hist add alertcreatedt DATE GENERATED ALWAYS AS (To_date(Trunc("alertcreatedttm"))) VIRTUAL;

After that I took the expdp and impdp , it went fine with out any issue.

View 7 Replies View Related

Connect To DB On Virtual Box Using Toad?

Sep 27, 2013

Im getting this error when trying to connect toad to my test database using virtualbox. This is my first time trying to do this on a Mac as well:

java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection

The settings in toad are correct as far as host, port #, and sid. My listener is up, and it is registered with the database. My tnsnames.ora file is correct. No firewall. I can ping my virtualbox from my local machine. I placed my tnsnames.ora file on my local machine, and tried to connect that way as well. I have no clue what else the Network adapter is looking for.

View 1 Replies View Related

Windows :: OEL Installation Using VM Virtual BOX On Win 8

Feb 5, 2013

I have a new laptop with windows 8 installed. I tried installing Oracle Virtual Box. But I am unable to install OEL on top of that. How to do installations on Windows 8. If so, what are the compatible versions of OEL and Virtual Box?

View 2 Replies View Related

Testing 9i On Virtual Machine Under RHEL 4.8

Sep 1, 2010

I work as a Sys. Admin. for several RHEL 3.8 servers, most of them are clusters of 2 machines. All these servers are running Oracle 9.2.0.7 database. They are running fine on a separate filesystem. So everytime the system has to be formatted for some particular reason, there is no need to re-install the database.

I am trying to make some tests by running the same filesystem containing the oracle database in a fresh Red Hat Enterprise Linux 4.8 X86_64 Install. This task has become impossible, and I'm not quite sure why.

I installed all the compat- packages required for a fresh oracle 9 install in a RHEL4 machine, but at the time of stating the STARTUP sentence, it gives me the next error:

CMCLI ERROR: OpenCommPort: connect failed with error 2.
CMCLI ERROR: OpenCommPort: connect failed with error 2.
CMCLI ERROR: OpenCommPort: connect failed with error 2.
CMCLI ERROR: OpenCommPort: connect failed with error 2.
CMCLI ERROR: OpenCommPort: connect failed with error 2.

After this error (repeated) it says something like: Cannot start an already running database.... But if i stat a shutdown sentence, it says that the instance has not been initialized....

I don't know whether i have to re-install all the oracle software in order to make a clean install in the new kernel version or not, i tried to apply a patch, and the oracle installer recognized the installation i had.

I think it might be because the original system is configured to work as a cluster, and i'm running it on only a virtual machine.

View 6 Replies View Related

Clusterware :: Fail Safe Virtual IP?

Jul 3, 2012

I have a Windows 2008 R2 SP1 2 node active/passive cluster with fail safe 3.4.2 installed. I also have 11G database software installed. My problem is I am unable to successsfully add an oracle virtual IP to the oracle group within fail safe. I receive the below error when I try. I need to get this resolved so that I can add my databases to the cluster.

Oracle Fail Safe Manager

FS-10890: Oracle Services for MSCS failed during the create operation
FS-11220: Failed to create the virtual address
FS-10012: Failed to bring the cluster resource Network Name HHVHAVELP01 online. Check the Windows event log for messages.
FS-10726: Resource Network Name HHVHAVELP01 is in a failed state

I don't see any message in the event log when I check...

View 2 Replies View Related

Security :: Virtual Private Database

Aug 25, 2012

I am having one table Where,different country names are stored. while viewing data, I have to make sure that if country name having "USA" can only view its data. How can i do at DB level without passing where clause. Is Virtual Database in this case?

View 25 Replies View Related

Production Oracle DB 11g On Virtual Server

Apr 25, 2013

We just got a new Dell R720 server that will host our Oracle DB. The server hasn't even been turned on yet but we know that the load on the server will be very low for a long time.

One of our problems is that we need to run a VERY important application. Since it is not very resource consuming compared to it's importance we chose to run it on a not so new Xeon 5110 1.60 GHz - 4GB RAM server. He said it's not a good idea and that we should buy a new server. (money is very low)

The software vendor suggested to virtualize our R720 server, host a vm running our database, and along with it other smaller machines like the one I described above. I suggested the use of Oracle VM, Oracle Linux for the database host and transforming the physical servers servers in VM with P2V.

Our IT Manager didn't like that, he said that it's not recommended to run a database on a virtual machine. But our software vendor said that many of their clients run their solution this way.

View 7 Replies View Related

SQL & PL/SQL :: Oracle Virtual Private Database Policy

Mar 31, 2012

I created policy as follow.

BEGIN
DBMS_RLS.ADD_POLICY (
object_schema => 'scott',
object_name => 'orders_tab',
policy_name => 'orders_policy',
function_schema => 'nisadmin_vpd',
policy_function => 'get_user_orders',
statement_types => 'select');
END;
/

After the creation of this policy for the table when I select the table Orders_tab then getting the below error.

ORA-00904: "ORA_ROWSCN": invalid identifier

When I dropped this policy then I can see the records of Order_tab table.

View 3 Replies View Related

Windows :: Oracle 10g On Virtual Machine 2003 X64

Jul 9, 2010

Does already installed Oracle 10g (10.2.0.1) on a windows 2003 server x64? Do you notice strange behaviors, any errors after the installation?

Does already installed Oracle 10g on a windows virtual machine? Are there any prerequisites?

View 9 Replies View Related

RAC & Failsafe :: Using One EC2 Machine To Host Several Linux VMs Using Virtual Box

Dec 22, 2010

How to get a RAC running in an EC2 environment?

It isn't possible to use one EC2 machine for each RAC node because EC2 can't handle the virtual IPs, but I had thought that I could use one EC2 machine to host several Linux VMs using Virtual Box (the same way that I use Virtual Box on a Windows host). But I can't get Virtual Box working on EC2. The only relevant advice I can find on this is comments to the effect that running any virtualization product with a Xen machine as host is not a good idea.

I do realize that this isn't a 100% Oracle question, but if set up a RAC on an Amazon Cloud machine,

View 1 Replies View Related

RAC & Failsafe :: Two Node - Configuration On Oracle Virtual Box

Mar 27, 2013

I am configuring two node RAC on oracle virtual box. Did its mandatory to configure DNS on both nodes before Rac installation? Whats the purpose of DNS in RAC. And if its mandatory did i have to configure DNS on each node separately?

View 1 Replies View Related

Export/Import/SQL Loader :: Physical Into Virtual

Jul 27, 2012

I have a physical server that I just virtualized. The virtualized server has data from a month ago, the physical server is on a productive environment.

This means that both servers has the same objects but data.

I need to import data to virtualized server from physical server.

I have used EXP command with the FULL=Y option. Same for IMP on virtualized server. The problem with this is that I receive several constraint errors.

The Oracle Server 9i version is installed on both servers. Windows Server 2003 R2 Standard for both too.

View 1 Replies View Related

Accessing Oracle On VirtualBox From Host Virtual Machine?

Jul 18, 2013

I have a Host system of windows 8, installed the Virtual Box Latest edition.The guest OS is the oracle Linux that came with the Pre-Built Developer VMs from Oracle.The VM is set to HOST ONLY network setting. Now, the thing is that i want to access the Oracle in the guest machine from my windows host machine.the guest OS shows the IP address as 192.168.56.101. I can ping the IP address from the HOST machine, but cannot connect theSQL developer to the oracle in the guest OS from the host machine. It keeps on saying the Network adapter cannot connect. do not say that install the oracle in window itself. I actually want to do the same on my macbook pro as that is my primary machine.

View 10 Replies View Related

RAC/ASM Clusterware Installation :: Virtual IP For Oracle 11gr2 Cluster?

Sep 8, 2012

I created Virtual Private Network for VIP and subnet is 255.255.255.255. I need VPN subnet as 255.255.255.0. How to i create

INS-40911:      Ensure that nodes in the list are up and reachable, and ensure that the node addresses are all in the same subnet.

View 2 Replies View Related

ODP.NET :: ORA-54017 - UPDATE Operation Disallowed On Virtual Columns?

Sep 2, 2013

I am usingOracle 12cODAC 12.1.010 and when make an update on table with virtual column i have this error:ORA-54017: UPDATE operation disallowed on virtual columns. I have seen that on edmx file the virtual column, the StoreGeneratedPattern property is not setted as Computed. Setting it (handly) works ok. Is a bug of ODAC? 

View 1 Replies View Related

RAC/ASM Clusterware Installation :: Virtual Box Bridged Adapter Not Working

Jul 10, 2013

I have just installed Virtual Box 4.2.16 for Windows hosts to my Windows 7 laptop. I created virtual machine and installed Oracle Linux 6.4. Now I want to have this virtual Linux OS on the existing network. My Windows 7 is part of this network.

Let's say, my Windows 7 machine's IP address is 10.11.5.46. I want to set 10.11.5.201 to this virtual Linux OS and make it ping able from both way (host - guest). To do this, I used Bridged Adapter. I selected Intel(R) 82567LM Gigabit Network Connection. I believe this is LAN adapter of my actual host machine. Then also I setup network to the virtual Linux OS, such as static IP address, subnet mask, and default gateway. Then I rebooted the virtual machine. 

Now, any machines on the network, including my Windows 7 host machine, can ping to my virtual Linux OS (10.11.5.201), but from virtual Linux OS can't ping to any machine on the network, except for default gateway. Also from virtual Linux I can't get to the Internet via Fire Fox browser.

View 0 Replies View Related

Virtual Host Name Must Be Static And Resolvable Consistently On Network

Apr 2, 2013

10g
SLES 11

Oracle® Enterprise Manager Grid Control Installation and Configuration Guide
10g Release 5 (10.2.0.5.0)

Part Number E10953-1518 Configuring Enterprise Manager for Active and Passive Environments18.1 Using Virtual Host Names for Active and Passive High Availability Environments in Enterprise Manager Database ControlSet Up the Alias for the Virtual Host Name and Virtual IP Address

You can set up the alias for the virtual host name and virtual IP address by either allowing the clusterware to set it up automatically or by setting it up manually before installation and startup of Oracle services. The virtual host name must be static and resolvable consistently on the network. All nodes participating in the setup must resolve the virtual IP address to the same host name. Standard TCP tools similar to nslookup and traceroute commands can be used to verify the set up.

View 21 Replies View Related

Cannot Connect To Oracle Running Under A Virtual-PC XP Mode Guest

Oct 27, 2012

Host: Win7

Guest: Using Virtual PC on Win7, created a VM using XP-Mode. Installed Oracle and everything on it. I can connect to the Oracle from within the guest env using sqlplus. Listener is also running, checked with 'lsnrctl status"

Guest and Host can ping (network) each other. I installed the guest using the Microsoft Loopback Adapter. Disabled the firewall on the guest OS before the host ping could work.

So ping works both ways from guest to host and host to guest. tnsping from host fails says "no listener". When I did a "telnet 192.168.x.x 1521" from host it said could not open connection on port 1521.

How do you open port 1521 on the guest OS to traffic from the host OS?

View 2 Replies View Related

Importance Of Public And Virtual IPs In Etc / Hosts File When Dealing With Oracle RAC

Mar 12, 2011

When working against the Oracle 10G/11G RAC database it's important to have all the relevant entries in the etc/hosts file.

Thus, when running the following code against the database sometimes it finishes with "Ok!" and sometimes getting the error below:

CODEimport java.sql.*;
public class TestDBOracle {
public static void main(String[] args)

[Code].....

The reason is missing RAC-related entries in the etc/hosts.

When dealing with Oracle RAC it should be both entries for the public and for the virtual IPs of the nodes in the etc/hosts file.

CODEA.A.A.A                        NODEA
A.A.A.B            NODEB
...

B.B.B.X            NODEA-VIP
B.B.B.Y            NODEB-VIP
...

View 1 Replies View Related

Security :: How To Edit Created Policy (Virtual Private Database)

Mar 28, 2012

I Created the Security Policy as user sysadmin_vpd as follows

BEGIN
DBMS_RLS.ADD_POLICY (
object_schema => 'scott',
object_name => 'orders_tab',
policy_name => 'orders_policy',
function_schema => 'sysadmin_vpd',
policy_function => 'get_user_orders',
statement_types => 'select');
END;

After creation this policy I want to view & edit them.By default where they are saved.

View 3 Replies View Related

Netca - Unexpected Error Has Been Detected By HotSpot Virtual Machine?

Sep 17, 2013

solving the error below?

[oracle@localhost Desktop]$ netca
Oracle Net Services Configuration:
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0xa23ae762, pid=7422, tid=3075933888
# Java VM: Java HotSpot™ Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [libclntsh.so.11.1+0x429762] snlinGetAddrInfo+0x1b2

An error report file with more information is saved as hs_err_pid7422.log

#If you would like to submit a bug report, {URL}...

/u01/app/oracle/product/11.2.0/db_1/bin/netca: line 178: 7422 Aborted (core dumped) $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

View 1 Replies View Related

Installation :: 11gr2 Setup Shows Error On Virtual Machine

Jun 4, 2013

I have a virtual machine which have Windows Server 2008 R2 Datacentre 64-bit.

When I install Oracle Database 11gR2 and click on "SETUP" file, a message box namely JAVA VIRTUAL MACHINE LAUNCHER and display below error;

_"Could not find the main class. Program will exit."_

Same setup runs successfully on my server with Windows Server 2008 Enterprise.

Is it 11gr2 supports a virtual machine which have Windows Server 2008 R2 Datacentre 64-bit ? or some other?

View 4 Replies View Related

Security :: Virtual Private Database Update Policy On Complex Views

Aug 21, 2013

1)I have created a complex view, and created an instead of trigger on this view

example:

create or replace trigger tr_x instead of before update on test_view_name for each row
-------
2) I have created an update policy on this view

DBMS_RLS.ADD_POLICY (
object_schema := schema_name,
object_name := name of the view,
policy_name := ploicy name,
function_schema := func schema name,
policy_function := pkg_test.fn_get_where,
statement_types := 'UPDATE',
update_check := TRUE,
policy_type := dbms_rls.dynamic);

3) function pkg_test.fn_get_where, which is used in the policy function always return 1 = 2, so that update should fail.

4) Now I will issue an update statement on the view test_view_name

update test_view_name set test_col = 1;

but still it updates the records, though update policy returns the where cluse 1 = 2

same where clause for select policy works perfectly fine.

View 4 Replies View Related

Performance Tuning :: How To Avoid Virtual Circuit Wait As Application Developer

Aug 7, 2013

I'm an application developer of an automotive company and developing a lot of database-based applications with either oracle forms or c#.Since we've moved from a 10g rac to 11g using a shared server configuration, the prevailing and overwhelming topic of addm performance analysis is "unusual network wait event" caused by virtual circuit waits. Therefore I cannot use grid control to detect bad sql as I could in 10g anymore, because all "tunable" sql is wiped out by virtual circuit wait.In top activity, I see virtual circuit wait on every type of statement (select, insert...) and pl/sql execution.

What do I have to do as an application developer to avoid virtual circuit waits? Especially in C#: we normally use auto committed dml statements and selects to fill either a datatable or generic list with a data reader. Usually we close a connection after each statement, but/and we are using connection pooling. How can such a activity cause virtual circuit waits? In Oracle Forms: Seems that we have a virtual circuit wait if we show sorted data in a block where not all records are fetched from database. It doesn't make sense to us to rewrite all blocks to always get all records due to performance reasons.

How do I have to write and execute my statements in C#, oracle forms and/or pl/sql to avoid virtual circuit wait?

View 4 Replies View Related

Client Tools :: How To Configure SQL DEVELOPER Via Virtual Machine Oracle Database

Mar 21, 2012

i have oel installed on my parallel Virtual machine.

i have a problem with configuring sql developer to the oracle database which is located in my virtual machine.

my os is windows7 32 bit.

View 13 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved