IaaS SQL/VM - how to use an existing SQL VM
Hello
I have a Cloud Service with a Window Web VM and SQL VM. They both are on the same Vnet. Now I want to add a DB using the existing SQL VM. But this VM does not show up of the Server drop down menu in "Specify Database setting"
wizard. What am I missing here?
If I let the DB Wizard add a new server (leveraging PaaS offer for SQL DB), how can I make sure that this new server shows up on my Vnet (the same one where I have Web VM on)? I assume that these VMs needs to be on the same Vnet to be able to communicate
with each other.
Thanks in advance for your help
Hello,
It seems that you had mix up Windows Azure SQL database with SQL Server on Azure VM. When you create a SQL Server virtual machine in Azure, it similar to on-premises SQL Server installed on VM. You can create and manage databases with SSMS.
If you create a SQL database on Management Portal, the SQL database server host a VM of the datacenter, you cannot using the existing SQL Server VM which your created yourself.
When connect to the SQL database from your azure VM which hosted on Cloud Service, there is no need to create a virtual network, just configure the firewall rule of the SQL database server to allow connection from Windows
Azure Serivces.
Reference: How to: Configure the Server-Level Firewall Settings (Azure SQL Database)
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support
Similar Messages
-
Where we use the window class in the sql and how to use it
where we use the window class in the sql and how to use it
http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions004.htm#SQLRF06174
Regards
Etbin -
[HTML DB] How to use the existing database table?
[HTML DB] How to use the existing database table?
I installed Oracle 10g database in Computer A(Windows 2000), and I already create all the tables with data and the data size is about 300MB.
In Computer B(Windows 2000), I installed HTML DB 1.6.
How can I use /get the existing database table (in computer A) for HTML DB?
Could anyone help me on this? I am newbie and I need some detail instructions. or Where can I find the examples.....
ThanksWell I guess if you wish to retain that architecture, i.e. HTMLDB on one machine and your data on another, you will have to establish database links to access the data. Oracle documentation will describe how to achieve that.
-
How to use views in sql script report?
All all
Can any one tell how to use views in sql script report?Most of the views are based on tables (or other views which are based on tables).
The view typically shows one org at a time based on the context that is set.
If you need records for all orgs, you need to use the underlying tables. Oracle typically names the tables with a _all suffix.
e.g. PO_HEADERS will show records for one org at a time. PO_HEADERS_ALL will show records for all orgs.
Hope this answers your question,
Sandeep Gandhi -
How to use XQuery Exist() Function on a SSIS XML file
I have a Package Inventory table that has an XML Column named CurrentPackageXML. This XML column contains the SSIS Package XML. I need to use the XQuery Exist() function to determine if the
errorRowDisposition="IgnoreFailure" exists.
Below I have a basic SQL statement, but I have no idea how to write the Correct XQuery Expression. In my example below, I just tried to see if the DTS:Name Property existed, but that XQuery Expression is invalid also. It is not what I need in the end, but
I was just trying to get anything to work.
Below my SQL, I have included a snip-it of the SSIS package XML where I can find the errorRowDisposition. It is to the far right, so you may have to scroll to the right to see it. I bolded the text so it is easier to find.
Finally, once I have got a SQL statement that checks if errorRowDisposition exists = False, I need to check for every occurrence of errorRowDisposition exists = False.
Would there be an easier way to do this by converting the XML to a varchar(max) then searching for all instances of errorRowDisposition exists = False?
SELECT CurrentPackageXML.exist('/DTS:Executable/DTS:Property[DTS:Name]')
FROM [dbo].[PackageInventory]
<inputs>
<input id="43" name="OLE DB Destination Input" description="" hasSideEffects="true" dangling="false" errorOrTruncationOperation="Insert" errorRowDisposition="FailComponent" truncationRowDisposition="NotUsed">
<inputColumns>
<inputColumn id="113" name="" description="" lineageId="110" usageType="readOnly" errorOrTruncationOperation="" errorRowDisposition="NotUsed" truncationRowDisposition="NotUsed" externalMetadataColumnId="95" mappedColumnId="0" />
<inputColumn id="172" name="" description="" lineageId="167" usageType="readOnly" errorOrTruncationOperation="" errorRowDisposition="NotUsed" truncationRowDisposition="NotUsed" externalMetadataColumnId="94" mappedColumnId="0" />
</inputColumns>
<externalMetadataColumns isUsed="True">
<externalMetadataColumn id="50" name="DateCreated" description="" precision="0" scale="0" length="0" dataType="dbTimeStamp" codePage="0" mappedColumnId="0" />
<externalMetadataColumn id="51" name="ProcessedCount" description="" precision="0" scale="0" length="0" dataType="i4" codePage="0" mappedColumnId="0" />
<externalMetadataColumn id="52" name="ErrorCount" description="" precision="0" scale="0" length="0" dataType="i4" codePage="0" mappedColumnId="0" />
<externalMetadataColumn id="90" name="AcknowledgementID" description="" precision="0" scale="0" length="0" dataType="i4" codePage="0" mappedColumnId="0" />
<externalMetadataColumn id="91" name="Date" description="" precision="0" scale="0" length="0" dataType="dbTimeStamp" codePage="0" mappedColumnId="0" />
<externalMetadataColumn id="92" name="FileSeqNumber" description="" precision="0" scale="0" length="0" dataType="i4" codePage="0" mappedColumnId="0" />
<externalMetadataColumn id="93" name="FileType" description="" precision="0" scale="0" length="50" dataType="str" codePage="65001" mappedColumnId="0" />
<externalMetadataColumn id="94" name="FileName" description="" precision="0" scale="0" length="50" dataType="str" codePage="65001" mappedColumnId="0" />
<externalMetadataColumn id="95" name="DateReceived" description="" precision="0" scale="0" length="0" dataType="dbTimeStamp" codePage="0" mappedColumnId="0" />
</externalMetadataColumns>
</input>
</inputs>
Ryan P. Casey • <a href="http://www.R-P-C-Group.com">www.R-P-C-Group.com</a>Try this and let know what errors you get. Note, this is a rough draft of one of a series of queries that I have started writing to document SSIS using SQL XQuery. I read a file in my version (the one I tested) and get the results.
-- Get the flat file destinations and their mappings
with xmlnamespaces ('www.microsoft.com/SqlServer/Dts' as DTS
), compflow as (
SELECT
task.xml.value('@DTS:ObjectName', 'varchar(200)') as TaskName
, task.xml.value('@DTS:ExecutableType', 'varchar(200)') as TaskType
, task.xml.value('@DTS:refId', 'varchar(1000)') as TaskRefId
--, task.xml.query ('.') as Node
, component.xml.value ('@name', 'varchar(200)') as ComponentName
, component.xml.value ('@refId', 'varchar(1000)') as ComponentRefId
, component.xml.value ('@componentClassID', 'varchar(1000)') AS componentClassID
--, component.xml.value ('count(inputs/input)', 'int') AS NumberOfInputs
--, component.xml.value ('count(outputs/output)', 'int') AS NumberOfOutputs
--, component.xml.value ('count(outputs/output[@isErrorOut="true"])', 'int') AS NumberOfErrorOutputs
, component.xml.query('.') as ComponentNode
FROM [dbo].[PackageInventory] pk
cross apply pk.CurrentPackageXML.nodes('//DTS:Executable[@DTS:ExecutableType="Microsoft.Pipeline"]') as task (xml)
OUTER APPLY task.xml.nodes('DTS:ObjectData/pipeline/components/component') as component (xml)
WHERE [PackageInventory_ID] = 13
, inputNode as (
SELECT c.*
, input.xml.value ('@name', 'varchar(200)') as InputName
, input.xml.value ('@refId', 'varchar(1000)') as InputRefId
, input.xml.value ('@hasSideEffects', 'varchar(1000)') as InputHasSideEffects
, input.xml.value ('count(inputColumns/inputColumn)', 'int') AS NumberOfInputColumns
, input.xml.value ('count(externalMetadataColumns/externalMetadataColumn)', 'int') AS NumberOfExternalMetadataColumns
, input.xml.value ('@errorOrTruncationOperation', 'varchar(1000)') as InputerrorOrTruncationOperation
, input.xml.value ('@errorRowDisposition', 'varchar(1000)') as InputerrorRowDisposition
, col.xml.value ('@errorOrTruncationOperation', 'varchar(1000)') as InputColumnErrorOrTruncationOperation
, col.xml.value ('@errorRowDisposition', 'varchar(1000)') as InputColumnErrorRowDisposition
from compFlow c
OUTER APPLY c.ComponentNode.nodes ('component/inputs/input') as input (xml)
OUTER APPLY input.xml.nodes ('inputColumns/inputColumn') as col (xml)
, inputAnal as (
select
TaskName
,TaskType
,TaskRefId
,ComponentName
,ComponentRefId
,componentClassID
,InputName
,InputRefId
,InputHasSideEffects
, Null as IsError
,NumberOfInputColumns
,NumberOfExternalMetadataColumns
,InputerrorOrTruncationOperation
,InputerrorRowDisposition
,InputColumnErrorOrTruncationOperation
,InputColumnErrorRowDisposition
, count(*) as NumRec
from inputNode
group by TaskName
,TaskType
,TaskRefId
,ComponentName
,ComponentRefId
,componentClassID
,InputName
,InputRefId
,InputHasSideEffects
,NumberOfInputColumns
,NumberOfExternalMetadataColumns
,InputerrorOrTruncationOperation
,InputerrorRowDisposition
,InputColumnErrorOrTruncationOperation
,InputColumnErrorRowDisposition
, xoutputNode as (
SELECT
TaskName
,TaskType
,TaskRefId
,ComponentName
,ComponentRefId
,componentClassID
, xout.xml.value ('@name', 'varchar(200)') as OutputName
, xout.xml.value ('@refId', 'varchar(1000)') as OutputRefId
, xout.xml.value ('@hasSideEffects', 'varchar(1000)') as OutputHasSideEffects
, xout.xml.value ('@isErrorOut', 'varchar(1000)') as OutputIsError
, xout.xml.value ('count(outputColumns/outputColumn)', 'int') AS NumberOfOutputColumns
, xout.xml.value ('count(externalMetadataColumns/externalMetadataColumn)', 'int') AS NumberOfExternalMetadataColumns
, xout.xml.value ('@errorOrTruncationOperation', 'varchar(1000)') as OutputerrorOrTruncationOperation
, xout.xml.value ('@errorRowDisposition', 'varchar(1000)') as OutputerrorRowDisposition
, col.xml.value ('@errorOrTruncationOperation', 'varchar(1000)') as OutputColumnErrorOrTruncationOperation
, col.xml.value ('@errorRowDisposition', 'varchar(1000)') as OutputColumnErrorRowDisposition
from compFlow c
OUTER APPLY c.ComponentNode.nodes ('component/outputs/output') as xout (xml)
OUTER APPLY xout.xml.nodes ('outputColumns/outputColumn') as col (xml)
, outputAnal as(
select
TaskName
,TaskType
,TaskRefId
,ComponentName
,ComponentRefId
,componentClassID
,OutputName
,OutputRefId
,OutputHasSideEffects
,OutputIsError
,NumberOfOutputColumns
,NumberOfExternalMetadataColumns
,OutputerrorOrTruncationOperation
,OutputerrorRowDisposition
,OutputColumnErrorOrTruncationOperation
,OutputColumnErrorRowDisposition
, count (*) as NumberOfRows
from xoutputNode
group by TaskName
,TaskType
,TaskRefId
,ComponentName
,ComponentRefId
,componentClassID
,OutputName
,OutputRefId
,OutputHasSideEffects
,OutputIsError
,NumberOfOutputColumns
,NumberOfExternalMetadataColumns
,OutputerrorOrTruncationOperation
,OutputerrorRowDisposition
,OutputColumnErrorOrTruncationOperation
,OutputColumnErrorRowDisposition
select 'Input' as RowType, i.* from inputAnal i
union all
select 'Output' as RowType, o.* from outputAnal o
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com -
How to use property file - sql query define in property file
Hi All,
Anybody please tell me how to use property file.
I have placed sql query in propery file and I have to access this in my file.
well so far this is my code but don't know how to implement in the following ...
pstmt = con.prepareStatement("select * from registration where username=?");
instead of writting the query I want to use the property file.
so far I have developed the following code...
FileInputStream fis = new FileInputStream("querysql.property");
Properties dbProp = new Properties();
dbProp.load(fis);is the code correct... or is there another way to access property file
Please help.
please reply soon....
ThanksBefore answering, check if it's already been done here http://www.jguru.com/forums/view.jsp?EID=1304182
-
How to use an existing data model using Business Components in OEPE
I am a beginner in ADF. I am working on a project with an existing data model that uses Business Components (EO, VO and AM). I know that OEPE does not handle the creation of BC, so if I want to modify them, I will have to do that in JDev. That's fine.
OEPE can create pages with drag and drop like in JDev. In my eclipse ADF projects, I would like to use the existing BC, to be able to use the bindings with ADF Faces. So far I have nothing in the Data Controls tab.
How to import the BC into the Data Controls tab?
JDev 11.1.1.6
WLS 10.3.6
Eclipse KeplerWe currently don't support DataControls based on the ADF BC technology. We will consider such support if there is a strong interest in that use case.
Independent of the IDE's you use, there are ways to expose services based on ADF BC that can then be consumed by the view layer. A Google search will point you to some of the approaches.
HTH. Thanks for your interest in OEPE. -
How to use DBFS PL/SQL API
Hi guys,
I'm re-posting this question to see if anyone can help me out. I am trying to use the DBFS PL/SQL API to manipulate files stored in DBFS.
Environment details:
Windows 7 or OEL 5.5 (I have tried both platforms)
Database: Oracle DB EE 11.2.0.2
IDE: SQLDeveloper on Windows 7
I have two users, DBFS_USER who owns the DBFS store and MYUSER who connects to the store to manipulate files using the DBFS PL/SQL API.
Creation scripts:
connect / as sysdba;
CREATE TABLESPACE dbfs_ts DATAFILE 'D:\oracle\oradata\orcl\dbfs01.dbf' SIZE 1M AUTOEXTEND ON NEXT 1M;
-- create users
create user dbfs_user identified by dbfs_user default tablespace dbfs_ts quota unlimited on dbfs_ts;
create myuser identified by myuser;
-- grant role
GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO dbfs_user;
GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO myuser;
-- create file system (as DBFS_USER)
connect dbfs_user/dbfs_user;
exec dbms_dbfs_sfs.createFilesystem('STAGING_AREA_FS');
exec dbms_dbfs_content.registerStore('STAGING_AREA_FS', 'posix', 'DBMS_DBFS_SFS');
exec dbms_dbfs_content.mountStore('STAGING_AREA_FS', 'staging_area');
commit;
-- export store STAGING_AREA_FS (as DBFS_USER)
exec dbms_dbfs_sfs.exportFilesystem('STAGING_AREA_FS');
-- check table names (as MYUSER)
connect myuser/myuser;
-- should see nothing (no mounts)
select * from table(dbms_dbfs_content.listMounts);
-- note down the table_name
select * from table(dbms_dbfs_sfs.listTables);
-- mount as MYUSER (example with table_name SFS$_FST_32)
exec dbms_dbfs_sfs.registerFilesystem('MYUSER_FS', 'DBFS_USER', 'SFS$_FST_32');
exec dbms_dbfs_content.registerStore('MYUSER_FS', 'posix', 'DBMS_DBFS_SFS');
exec dbms_dbfs_content.mountStore('MYUSER_FS', 'staging_area');
commit;
-- check mount (as MYUSER)
select * from table(dbms_dbfs_content.listMounts);
select pathname from dbfs_content;
CREATE STORED PROC (as MYUSER)
CREATE OR REPLACE PACKAGE MYUSER_PKG IS
Function CreateDirectory
(P_File_Path IN VARCHAR2,
P_ErrMsg OUT VARCHAR2)
return Number;
END MYUSER_PKG ;
CREATE OR REPLACE PACKAGE BODY MYUSER_PKG IS
Function CreateDirectory
(P_File_Path IN VARCHAR2,
P_ErrMsg OUT VARCHAR2)
return Number
IS
l_Return NUMBER;
l_props DBMS_DBFS_CONTENT.PROPERTIES_T;
BEGIN
l_Return := 0;
DBMS_DBFS_CONTENT.createDirectory (
path => P_File_Path,
properties => l_props);
RETURN l_Return;
EXCEPTION
WHEN OTHERS THEN
l_Return := NVL(SQLCODE, -1);
P_ErrMsg := SQLERRM;
RETURN l_Return;
END CreateDirectory;
END MYUSER_PKG ;
When compiling the package, I am getting this error:
Error(9,11): PLS-00201: identifier 'DBMS_DBFS_CONTENT' must be declared
Error(9,11): PL/SQL: Item ignored
Error(13,3): PL/SQL: Statement ignored
Error(15,19): PLS-00320: the declaration of the type of this expression is incomplete or malformed
How do I solve the problem in the error message? I'm not a DB expert. I used this reference documentation: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e18294/adlob_client.htm#CIHDEJAA
Thanks in advance.
CappaYou need to grant directly the privileges from DBFS_ROLE because roles are not enabled in stored PL/SQL:
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 Solaris: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL> show user
USER is "SYS"
SQL>
SQL> create user myuser identified by myuser;
User created.
SQL> GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO myuser;
Grant succeeded.
SQL>
SQL> begin
2 for x in (select privilege, table_name
3 from dba_tab_privs
4 where grantee='DBFS_ROLE')
5 loop
6 execute immediate 'grant ' || x.privilege || ' on ' || x.table_name
7 || ' to myuser ';
8 end loop;
9 end;
10 /
begin
ERROR at line 1:
ORA-22812: cannot reference nested table column's storage table
ORA-06512: at line 6
SQL>
SQL> connect myuser/myuser
Connected.
SQL>
SQL> CREATE OR REPLACE PACKAGE MYUSER_PKG IS
2 Function CreateDirectory
3 (P_File_Path IN VARCHAR2,
4 P_ErrMsg OUT VARCHAR2)
5 return Number;
6 END MYUSER_PKG ;
7 /
Package created.
SQL> show errors
No errors.
SQL>
SQL> CREATE OR REPLACE PACKAGE BODY MYUSER_PKG IS
2 Function CreateDirectory
3 (P_File_Path IN VARCHAR2,
4 P_ErrMsg OUT VARCHAR2)
5 return Number
6 IS
7 l_Return NUMBER;
8 l_props DBMS_DBFS_CONTENT.PROPERTIES_T;
9 BEGIN
10 l_Return := 0;
11 DBMS_DBFS_CONTENT.createDirectory (
12 path => P_File_Path,
13 properties => l_props);
14 RETURN l_Return;
15 EXCEPTION
16 WHEN OTHERS THEN
17 l_Return := NVL(SQLCODE, -1);
18 P_ErrMsg := SQLERRM;
19 RETURN l_Return;
20 END CreateDirectory;
21 END MYUSER_PKG ;
22 /
Package body created.
SQL> show errors
No errors.You would need to check why some GRANT statement fails if you have other issue with other piece of code. -
How to use the generated SQL of "Recommendation"
Dear Experts,
I am using KXEN recommendation function. After trained the model, I expose the result in form of HANA SQL. However, I am really have no idea how to make this SQL runnable because there are some subqueries like:
FROM $Dataset "SPACEIN"
LEFT OUTER JOIN (SELECT * FROM WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".MemberID)
LEFT OUTER JOIN (SELECT * FROM WHERE "GRAPH_NAME" = 'Product') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
LEFT OUTER JOIN (SELECT * FROM WHERE "GRAPH_NAME" = 'Transactions') "NOTIN" ON ("RULES"."KXNODESECOND_2" = "NOTIN"."KXNODESECOND") AND ("NOTIN"."KXNODEFIRST" = "SPACEIN".MemberID)
Please pay attention to the red parts. While $Dataset, I assume it should be the data source which is used to train the model, but how to handle the "GRAPH" parts(the next 3 subqueries)? There are something missing after "FROM" clause, what should I fill in here? why the XKEN will generate sucn incomplete codes?
Thanks for your help!Hi Richard,
To apply a recommendation model, you first need to save your model in your database. (saving the model in the database for such models and for what you want to do is mandatory).
Once you saved it, you will see many tables starting with "Kx" : KxInfos, KxLinks, KxNodes...
These tables contains information on the nodes available in the data used, on the links between products.
Now, if you generate the SQL code for Hana, the name of your KxLinks table should now be used in the SQL code.
When prompted for $Dataset and $Key, you should specify in place of $Dataset the name of the table on which you want to apply your model. In place of $Key, you should enter the name of the key of this table (e.g. UserId).
In my case $Dataset =>KAR_UniqueCustomers and $Key=>UserID
My generated code looks like this :
FROM KAR_UniqueCustomers "SPACEIN"
LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".UserID)
LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'ItemPurchased') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
Note that your application table must contain:
- A column with the same name as your users identifier in the training dataset. It contains the list of distinct users (stricly 1 row for each customer id)
- A column with the same name as your products name in the training dataset. It can contain the name of the same product for all customers.
I hope you'll make it work !
Armelle -
How to use PHP with SQL?
how to use sql in php and output a new ERP table contains every order_number, every order_quantity and so on then ouput sum of company and then sum of area
and so on.
now i only know a little how to use sql in php and you can give some examples of this?This sounds like a nice little homework exercise.
Check the PHP FAQs for Oracle/PHP help
http://www.oracle.com/technology/tech/php/htdocs/php_faq.html
http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html
For SQL help, check http://asktom.oracle.com/
-- cj -
How to use SP_transaction_notification in SQL to provide SAP warnings?
Hi Guys,
I use SP_transaction_notification in SQL to block certain event and give error messages on sap screens. Anyone knows how to provide a warning only using the same technique?
For example if a user doesn't enter customer reference number on a order , can you provide a warning?
ThanksHi,
As an addt. info, this link seems unavailable :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid /53cefa6a-0a01-0010-cd8e-e7c189cb6519
I've tested it after browsing the link.
Rgds, -
How to use an existing remote database instance?
Hi,
is it possible to use an existing remote database instance for installation of Solution Manager?
Our dba has setup an empty database instance on a hpux oracle cluster for me and I don´t know how to tell the SAPinst during the installation of the distributed system that it should use this existing database.
Or is it mandatory to run the installation on the host where the database should resides and then create a new instance?
Thanks in advance for any hints!
ChristianWe currently don't support DataControls based on the ADF BC technology. We will consider such support if there is a strong interest in that use case.
Independent of the IDE's you use, there are ways to expose services based on ADF BC that can then be consumed by the view layer. A Google search will point you to some of the approaches.
HTH. Thanks for your interest in OEPE. -
How to use advanced PL/SQL concepts in oracle forms/reports
Hi all,
Can any one suggest me how to use the advanced PL/SQL Concepts(nested tables,PAA,Varrays,Objects...) in Oracle forms.
Actually i Created a Table having column of Varray datatype. now i want to create a item in oracle forms on this field. can any one suggest me the way to do this.
Thanks,
KumarHello,
Have a look at this one:
http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
particularly the chapter about block that contain a collection (2.3.3). The sample is built around a nested table but you have the idea to adapt it to work with a varray.
Kind regards,
Alex
If someone's answer is helpful or correct please mark it accordingly. -
How to use the oem_exec_template.sql
hi,guys
Env
OWB 9.2.0.2.8
Oracle DB 9.2.0.1
OEM 9.0.1
I've deployed a mapping SRC_TO_TAR. And I've successfully run this mapping in owb.
But when I try to use the oem_exec_template.sql to invoke in sqlplus, the script always tells me 'Taks not found'.
I use the following command to invoke the oem_exec_template.sql:
sqlplus owb_runtime_access/dw@dwdb @oem_exec_template.sql owb_runtime owb_target PLSQL SRC_TO_TAR "," ","
the result is
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Session altered.
Role set.
Stage 1: Decoding Parameters
| location_name=owb_target
| task_type=PLSQL
| task_name=SRC_TO_TAR
Stage 2: Opening Task
declare
ERROR at line 1:
ORA-20001: Task not found - Please check the Task Type, Name and Location are
correct.
ORA-06512: at line 261
Could any one here tell me how to correctly use the oem_exec_tempalte.sql?
thanks very much.
FrankI login in as runtime owner and runtime access user and run the sql:
select * from all_objects where owner = 'OWB_TARGET'
I can't find the mapping that I have already deployed.
is this the reason why it always retrun "Task not found"
who knows?
urgent
thanks
Frank -
How to use 10g's SQL tuning support from SQL*Plus
Hi,
I am having problems with my application's SQL queries execution time. I am not tuning guru, I know pretty little about tuning. As I read 10g has a SQL Tuning Advisor. Can I use it from SQL*Plus? I didn't say, but do not have the possibility to access the database, by no other means only SQL*Plus.
TIA
Regards,
Tamas SzecsyIf you have granted the ADVISOR privilege you may use it from SQL*PLUS
Look for examples on the web
(using DBMS_SQLTUNE package)
Maybe you are looking for
-
Ideas for a new update....
I was thinking that apple should make a update for the ipod touch so we can send and share songs wirelessly,like the zune can..and also since they already added notes in events,in the calander ..they should just make a note icon in the main menu like
-
New Retina Macbook pro 15 Haswell loud fan?
I'm running a brand new 15" 2.3ghz 16gb, 500HD (of course shipped with Mavericks), anyway this sucker is LOUD, the fan fires up every time I do a photo import with Lightroom 5. My room-temperature is average and it's sitting on a cool table. I ran di
-
Hi, Everyone: The WAR really drives me crazy. everytime when i reach the jsp files in war, it throws exception: <I> <WebAppServletContext-skylos> Generated java file: C:\weblogic\myserver\_tmp_war\jsp
-
Document Linking BPEL 2.0 - partly working
According to the BPEL 2.0 specifications you can use import statements to link xml schemas or wsdls. This seems to work during design time. When you build/deploy the project only the last import is used. All preceeding imports are skipped or not noti
-
I have made a beautiful book for a friend and they are asking me what gsm the book is printed on. Can anyone help me? Thanks Snappy