Metadata in SQL

Hi,
I have a PL-SQL procedure that is doing some smart polygons and other types of selections and saves the results into temporary table which I then include in a base map and generate with different style to mark the selection. At the moment it's however selecting even some features that are currently not visible in the map. Is there any way how can I easily parse the definition from MDSYS.USER_SDO_MAPS and get the information about min and max scales out of it? It's stored in that xml format and I couldn't find any easy way to get it out.
Thanks
Jan

Hi Jan,
This PL/SQL sample code may help you extract elements from an XML document. It uses the xmltype database type.
The sample creates a dummy xml document from some text - I suspect you would use the table/column you mention.
declare
xml_char varchar2(1024);
xml xmltype;
v_type varchar2(32);
v_server varchar2(32);
v_port varchar2(32);
begin
-- create dummy XML document
xml_char := '<?xml version="1.0" encoding="Cp1252"?>'||
'<CONNECTION>'||
' <MAPSERVER type="Arcims">'||
' <HOST>uranus</HOST>'||
' <PORT>5300</PORT>'||
' </MAPSERVER>'||
'</CONNECTION>';
-- convert to XML from char type
xml := xmltype.createxml(xml_char);
-- extract some elements
v_type := xml.extract('/CONNECTION/MAPSERVER/@type').getStringVal();
v_server := xml.extract('/CONNECTION/MAPSERVER/HOST/text()').getStringVal();
v_port := xml.extract('/CONNECTION/MAPSERVER/PORT/text()').getStringVal();
-- display them
dbms_output.put_line('Type = '||v_type);
dbms_output.put_line('Server = '||v_server);
dbms_output.put_line('Port = '||v_port);
end;
Excuse the crud formatting. I hope you can understand it!
Hope this helps,
Steve

Similar Messages

  • How to integrate DRM with third party tool for loading metadata in SQL table

    Experts,
    I am new to DRM and I have a requirement in which we want to integrate DRM with third party tool(lets say SQL table) as target and load metadata from DRM (Parent node, name , alias etc) to SQL table (same column name)
    Is there any way we can integrate DRM to export the same to table directly instead to files. If yes what are the steps we have to follow.
    Is there anyway we can customize DRM to execute queries or run batch
    Can I have a basic example please.
    Thanks in advance,
    Regards,

    1. Use DRM Export to Table option, for that create an External Connection first for the Target Database and select the respective Tables to which you wish to Export the Hierarchy information.
    2. You can perform most of the DRM Actions via the DRM_BATCH_CLIENT.exe.
        Please refer to Using the Data Relationship Management Batch Client of DRM User guide.
    let me know if you have any issues.

  • Problems when trying to import metadata from SQL server using OWB

    Hi,
    We are using Oracle 11.2 EE on AIX and OWB: 11.2. We are in the process testing Oracle Transparent gateway for SQL Server and have installed and configured it on a standalone windows server. We and have run the ORACLE_HOME\dg4msql\admin\dg4msql_cvw.sql on SQL Server side, in order to query the SQL-Server data dictionary. We have created a DB-link and can pull data correctly without any problems. When trying to import metadata in OWB Client on win xp, we have created a non-oracle SQL Server Module and are able to connect and start the import, but the displayed table names look strange and can not be imported. In front of every letter there is a square box, so instead of ADDRESS (the address table in the source system) , it reads "squarebox"A"squarebox"D"squarebox"D"squarebox"R"squarebox"E"squarebox"S"squarebox"S and subsequently the import fails with :API0413: Illegal name [<tablename>] Name with preceding and trailing spaces is not allowed.
    The gateway have been configured with the following parameters:
    HS_FDS_CONNECT_INFO=<connect string>
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
    Any ideas ?
    This topic has been posted in the Heterogenious Forum as well, but as the problem is within OWB, I also post it here.
    Thanks in advance!
    Henrik
    Edited by: he**** on Nov 15, 2011 1:29 PM

    Henrik,
    I've found other problems where OWB adds a space between all characters returned from SQL*Server which is what is happening in your case, although it is being displayed as a square box.
    In one of these cases the problem was fixed by using the 11.2.0.2 OWB so would it be possible for you to try with that version ?
    Also, as the problem is not with the gateway itself as you can select successfully using a database link then it would be better to follow up in the OWB forum -
    Forum: Warehouse Builder
    Warehouse Builder
    as they will be able to help with the OWB side of the problem.
    Regards,
    Mike

  • Error when importing metadata from sql server

    Hi,
    I am having problem connecting to SQL Server. from OWB.(my owb client is 11.1.0.6.0 and owb repository is 11.1.0.1.1)
    I am using Oracle Database Gateways 11g Release 1 (11.1.0.6.0) to connect.
    i make all the configuration for the gateway .
    and execute the dg4msql_cvw.sql to create corresponding views in sql server ...
    THe dblink allows me to run SQL query from sql plus to the tables in SQL server (the host that i want to import data from is i sql server 2000).
    When I test the connnection from owb to SQL Server it returns "successful"
    but when i go to import the meta data of tables in SQL Server i get this error.
    ORA-00942: table or view does not exist
    [Oracle][ODBC SQL Server Driver][SQL Server]Invalid object name 'V$VERSION'.[Oracle][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.
    ORA-02063: preceding 2 lines from FIN_LINK
    owb looking for v$version in sql server and i dont know why .
    i tried to create this view in sql server like this
    create table v$version (banner varchar(20))
    but i dont know what kind of data should i insert in ,,,,,,,
    is there any idea how can i fix this
    thanx

    thanx dallan for replying
    i really execute that script u talk about and i mentioned that in first post ...
    its' dg4msql_cvw.sql script and its make a views in sqlservere
    its create these views :
    ALL_CONS_COLUMNS
    ALL_IND_COLUMNS
    USER_CONS_COLUMNS
    USER_IND_COLUMNS
    ... i r execute it as following : i have windows server 2003, the sql server 2000 installed on this server
    i open the query analyzer and connect to the user that hold the db, i select open and browse to the dg4msql_cvw.sq
    and then execute ... but still same error
    i think this may works ..right?
    and this is the trace log file :
    note :
    here are the trace log file :
    Oracle Corporation --- TUESDAY MAY 05 2009 12:44:14.846
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- TUESDAY MAY 05 2009 12:44:14.846
    Version 11.1.0.6.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "On"
    RC=-1 from HOSGIP for "PATH"
    PATH from environment is "D:\app\OraGtw\bin;D:\app\product\product\11.1.0\db_1\bin;D:\app\BI\server\Bin;D:\app\BI\web\bin;D:\app\BI\web\catalogmanager;D:\app\BI\SQLAnywhere;D:\app\product\product\11.1.0\db_1\jdk\bin;D:\app\BI\server\Bin;D:\app\BI\web\bin;D:\app\BI\web\catalogmanager;D:\app\BI\SQLAnywhere;D:\app\product\product\11.1.0\db_1\jdk\bin;C:\Program Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0"
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using SA as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    ##>Connect Parameters (len=209)<##
    ## DRIVER=Oracle 11g dg4msql-OraGtw11g_home1;
    ## SERVER=web02;
    ## Database=acc-aeu;
    #! UID=SA;
    #! PWD=*
    ## AnsiNPW=Yes;
    ## QuotedId=Yes;
    ## IANAAppCodePage=2252;
    ## ArraySize=100;
    ## PadVarbinary=0;
    ## SupportNumericPrecisionGreaterThan38=1;
    SQL text from hgopars, id=1, len=25 ...
    00: 454C4553 2A205443 4F524620 5622204D [SELECT * FROM "V]
    10: 52455624 4E4F4953 22 [$VERSION"]
    hgopars, line 347: calling SQLNumResultCols got sqlstate 42S02
    plz guys any ideas ???

  • Can I get metadata with SQL queries ??

    Can I get relationships between tables in MS Access using SQL statements ??

    Actually, you might be able to get what you need out of DatabaseMetaData class.
    DatabaseMetaData meta = connection.getMetaData();perhaps using:
    public ResultSet getCrossReference(String primaryCatalog,
                                       String primarySchema,
                                       String primaryTable,
                                       String foreignCatalog,
                                       String foreignSchema,
                                       String foreignTable)
                                throws SQLException
    Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key columns of the given primary key table (describe how one table imports another's key). This should normally return a single foreign key/primary key pair because most tables import a foreign key from a table only once. They are ordered by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, and KEY_SEQ.

  • How to extract hyperion planning metadata to sql by ODI?

    I don't find any LKM for that. How to achieve it? I just wonder why Oracle doesn't provide it ?

    Hi,
    No you can't directly extract metadata from planning, this follows on from the HAL days where you couldn't do it either.
    It is possible to extract the dimension information from essbase which is nearly the same, it just needs a bit of transformation.
    I did write a couple of blogs covering this area, try [here |http://john-goodwin.blogspot.com/2008/12/odi-series-essbase-to-planning.html] and here
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Retireving cube metadata via sql returns nulls

    Hi
    i'm getting some weird behaviour when i run a query that links 2 of the olapsys views together.
    I'm trying to get a list of display names against the folders/catalogs that the measures are in
    my query looks like this:
    select a.display_name, b.CATALOG_NAME from ALL_OLAP2_AW_CUBE_MEASURES a, ALL_OLAP2_AW_CATALOG_MEASURES b
    where a.AW_MEASURE_NAME=b.CHILD_ENTITY_NAME
    if i run this query the display name is returned as null while the catalog name is returned.
    If i swap the order of the tables the reverse happens.
    Is this a known issue? if so is there a workaround.
    i'm on 10.2.0.1
    Oh and does anyone know what the difference is between
    ALL_OLAP_CUBES,
    ALL_OLAP2_CUBES and
    ALL_OLAP2_AW_CUBES?
    The first two return nothing.
    Cheers
    Alex

    I think the output from your query depends on the user executing the query. If you are using the OLAPSYS account then this will probably only return values if you have installed the sample schemas (such as SH) into your instance.
    If you GRANT SELECT on each AW within your schema to OLAPSYS and then execute the query you should get the correct results returned. I cut & pasted your query into SQLDeveloper and ran it against my instance and everything was ok. Alternatively, you can execute the query within a schema that already owns one or more AWs and the query will return results for just that schema (and any other schemas where GRANT SELECT has been given to the schema owner).
    Well, almost. One thing I did notice was the measure descriptions returned were in fact truncated for some reason and I cannot understand why. Using the "Description" column rather than the "Display_Name" column returned the full measure name.
    Connecting as OLAPSYS or my AW owner using this query returned the correct results within SQL Developer:
    select a.display_name
    , a.description
    , b.CATALOG_NAME
    from ALL_OLAP2_AW_CUBE_MEASURES a
    , ALL_OLAP2_AW_CATALOG_MEASURES b
    where a.AW_MEASURE_NAME=b.CHILD_ENTITY_NAME
    executing the same query in SQLPlus also returned the correct results.
    The three views you listed I think breakdown based on the source of the OLAP object:
    ALL_OLAP_CUBES - refers to all relational OLAP cubes
    ALL_OLAP2_CUBES - refers to all relational OLAP cubes registered with the CWM2 catalog. This would be done to provide complex aggregate summaries for query rewrite within a ROLAP model.
    ALL_OLAP2_AW_CUBES - lists all pure multi-dimensional cubes.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • I am trying to extract metadata from essbase into a flat file using ODI.

    I have 2 questions in this regard :
    Some of the account members storage property is missing in the extract.the reason which i suspect is due to the parent child sorting that did not happen while extracting.How do i do this.I do not see this option when i select IKM hyperion Essbase Metadata to SQL....
    I have many account members that have more than one UDA's upto 5 UDA's.But in my extrcat only one UDA appears.How do i incorporate all the UDA's in a single column,sperated by a comma,the extract file as such is semicolon seperated,mainly because of this reason and some alias descriptions have comma's in the source system
    ODi is extracting metadata in a descending order.How do i change it to sort records in parent child order
    Thanks,
    Lingaraj
    Edited by: user649227 on 2009/06/10 6:50 AM

    Hi,
    There was an issue with early versions of the KM around the storage property, this has since been resolved. I recommend upgrading to the latest release of ODI or have a look through the patches.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Mysql error java.sql.SQLException: Communication failure during handshake.

    Hi !!!
    I was working ok, with hibernate and mysql but yesterday I try to install the new mysql version (4.1.10) and receive the following error when I try to connect
    Initializing Hibernate
    INFO - Hibernate 2.1.6
    INFO - hibernate.properties not found
    INFO - using CGLIB reflection optimizer
    INFO - configuring from resource: /hibernate.cfg.xml
    INFO - Configuration resource: /hibernate.cfg.xml
    INFO - Mapping resource: com/tutorial/hibernate/core/News.hbm.xml
    INFO - Mapping class: com.tutorial.hibernate.core.News -> news
    INFO - Configured SessionFactory: null
    INFO - processing one-to-many association mappings
    INFO - processing one-to-one association property references
    INFO - processing foreign key constraints
    INFO - Using dialect: net.sf.hibernate.dialect.MySQLDialect
    INFO - Maximim outer join fetch depth: 2
    INFO - Use outer join fetching: true
    INFO - Using Hibernate built-in connection pool (not for production use!)
    INFO - Hibernate connection pool size: 20
    INFO - using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://localhost/unnobanews
    INFO - connection properties: {user=news, password=news}
    INFO - Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory
    INFO - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
    WARN - Could not obtain connection metadata
    java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?
    at org.gjt.mm.mysql.MysqlIO.init(Unknown Source)
    at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source)
    at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Unknown Source)
    at org.gjt.mm.mysql.Driver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    Somewhere I red that was necessary to update the jdbc driver, so I updated it from version nro 2 to version nro 3.1.7 but still the error
    Phpmyadmin works ok and mysql control center can connect ok too.
    But when I try a telnet localhost:3306 I receive and error of connection filed
    Anyway the mysql status thowme correct information, that it working ok!
    Any idea ?
    King regards
    Naty

    Hibernate 2.1.6
    loaded properties from resource hibernate.properties: {hibernate.connection.username=root, hibernate.connection.password="", hibernate.cglib.use_reflection_optimizer=true, hibernate.connection.pool_size=10, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql://manoj/manoj, hibernate.connection.driver_class=org.gjt.mm.mysql.Driver}
    using CGLIB reflection optimizer
    configuring from resource: /hibernate.cfg.xml
    Configuration resource: /hibernate.cfg.xml
    Mapping resource: com/mec/emp.hbm.xml
    Mapping class: com.mec.Employee -> emp
    Configured SessionFactory: null
    processing one-to-many association mappings
    processing one-to-one association property references
    processing foreign key constraints
    Using dialect: net.sf.hibernate.dialect.MySQLDialect
    Maximim outer join fetch depth: 2
    Use outer join fetching: true
    Using Hibernate built-in connection pool (not for production use!)
    Hibernate connection pool size: 10
    using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://manoj/manoj
    connection properties: {user=root, password=""}
    No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
    Could not obtain connection metadata
    java.sql.SQLException: Server configuration denies access to data source
         at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:144)
         at org.gjt.mm.mysql.Connection.<init>(Connection.java:230)
         at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
         at java.sql.DriverManager.getConnection(DriverManager.java:525)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:101)
         at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73)
         at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1155)
         at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:789)
         at com.mec.CreateSession.getCurrentSession(CreateSession.java:35)
         at com.mec.TestEmployee.createEmployee(TestEmployee.java:37)
         at com.mec.TestEmployee.main(TestEmployee.java:24)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    Use scrollable result sets: false
    Use JDBC3 getGeneratedKeys(): false
    Optimize cache for minimal puts: false
    Query language substitutions: {}
    cache provider: net.sf.hibernate.cache.EhCacheProvider
    instantiating and configuring caches
    building session factory
    Not binding factory to JNDI, no JNDI name configured
    SQL Error: 0, SQLState: 08001
    Server configuration denies access to data source
    Cannot open connection
    java.sql.SQLException: Server configuration denies access to data source
         at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:144)
         at org.gjt.mm.mysql.Connection.<init>(Connection.java:230)
         at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
         at java.sql.DriverManager.getConnection(DriverManager.java:525)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:101)
         at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:286)
         at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3326)
         at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3286)
         at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40)
         at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19)
         at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2231)
         at com.mec.TestEmployee.createEmployee(TestEmployee.java:38)
         at com.mec.TestEmployee.main(TestEmployee.java:24)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    Process finished with exit code 0

  • Oracle to MS SQL Migration Price Prediction

    We want to calculate approximate man-month for migrating from Oracle 11g to MS SQL 2012. I have read the steps of migration. Are there any white papers about migration issues, difficulties. We are also using Hibernate in ORM layer. How can we predict migration
    cost according to table size or relation count, HQL or native SQL query number or other criteria? 

    Hi ozgurba,
    According to your description, you could download and use the free tool
    Microsoft SQL Server Migration Assistant v6.0 for Oracle(SSMA) to migrate Oracle database to SQL Server 2012. About migration issues using SSMA, please pay attention to the points below. For more information about migration issues, please download and check
    this
    white paper.
    1.The account that is used to connect to the Oracle database must have at least CONNECT permissions. This enables SSMA to obtain metadata from schemas owned by the connecting user. To obtain metadata for objects in other schemas and then convert objects
    in those schemas, the account must have the following permissions: CREATE ANY PROCEDURE, EXECUTE ANY PROCEDURE, SELECT ANY TABLE, SELECT ANY SEQUENCE, CREATE ANY TYPE, CREATE ANY TRIGGER, SELECT ANY DICTIONARY.
    2.The account that is used to connect to SQL Server requires different permissions depending on the actions that the account performs as the following:
    To convert Oracle objects to Transact-SQL syntax, to update metadata from SQL Server, or to save converted syntax to scripts, the account must have permission to log on to the instance of SQL Server.
    To load database objects into SQL Server, the account must be a member of the sysadmin server role. This is required to install CLR assemblies.
    To migrate data to SQL Server, the account must be a member of the sysadmin server role. This is required to run the SQL Server Agent data migration packages.
    To run the code that is generated by SSMA, the account must have Execute permissions for all user-defined functions in the ssma_oracle schema of the target database. These functions provide equivalent functionality of Oracle system functions, and are used
    by converted objects.
    If the account that is used to connect to SQL Server is to perform all migration tasks, the account must be a member of the sysadmin server role.
    If the engine being used is Server Side Data Migration Engine, then, before you can migrate data, you must install the SSMA for Oracle Extension Pack and the Oracle providers on the computer that is running SSMA. The SQL Server Agent service must also be
    running. And when SQL Express edition is used as the target database, only client side data migration is allowed and server side data migration is not supported.
    3.Not all Oracle database objects have direct equivalents in SQL Server. In many cases, SSMA creates additional objects to provide the proper emulation. For example, an Oracle view could be converted to an SQL Server view. But the only exception is the materialized
    view, which becomes an ordinary table.
    4.Oracle DML triggers are converted to SQL Server triggers, but because the trigger functionality is different, the number of triggers and their types can be changed. Most common Oracle trigger is a row-level trigger (FOR EACH ROW). SQL Server supports only
    statement-level triggers. In a row-level trigger, Oracle uses an :OLD alias to refer to column values that existed before the statement executes. SQL Server uses two pseudotables, inserted and deleted. If you are converting tables with UPDATE triggers, we
    recommend setting the Generate ROWID column option to Yes or Add ROWID column for tables with triggers in the SSMA project settings. To emulate row-level triggers, SSMA processes each row in a cursor loop.
    5.Some Oracle object categories, such as packages, do not have direct SQL Server equivalents. SSMA converts each packaged procedure or function into separate target subroutines and applies rules for stand-alone procedures or functions.
    6.Unlike Oracle, Microsoft SQL Server 2012 supports neither records nor collections. When you migrate from Oracle to SQL Server 2012, therefore, you must apply substantial transformations to the PL/SQL code.
    7.SQL Server 2012 does not support autonomous transactions. The only way to isolate a Transact-SQL block from a transaction context is to open a new connection. To convert a procedure, function, or trigger with an AUTONOMOUS_TRANSACTION flag, you split it
    into two objects. The first object is a stored procedure containing the body of the converted object. The second object is a wrapper that opens a new connection where it invokes the first object.
    In addition, regarding migration price prediction, please ask for the help from relevant department of your company, since this forum is related to the technical support for SQL Server.
    Regards,
    Michelle Li

  • Extraction of Essbase Metadata into a Text File

    When extracting metadata from Essbase into a txt file, the file lists the child members before the parents. We want it vice versa-just like it looks in Essbase. LKM Hyperion Essbase METADATA to SQL Is used for extraction.

    Unfortunately that is the way the API extracts the hierarchy.
    There are a couple of options extract the hierarchy with an incremental id, then order by the ID, this will need to be done in an rdbms staging area such as Oracle or SQL Server.
    If you are using Oracle you can always load to table and then using the connect by prior command to sort in the correct parent/child format, I am sure there is something equivalent in sql server.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Importing SQL Server NTEXT into OWB (Warehouse Builder)

    Hi all,
    I'm having trouble using a SQL Server source in OWB. I need to import a NTEXT column and it casts to a LONG in Oracle, so I'm not able to select the imported data. Everything is working fine, except this NTEXT source values.
    Has OWB any parameters to import such NTEXT values? How can I read SQL Server data that is assumed as LONG values?
    Thanks in advance
    Best regards
    Jose

    Let me add to this question: is there any way to control the way OWB casts data types from non-Oracle database sources? I am importing metadata from SQL Server databases that have one or more columns of type XML. OWB also casts these as LONG, and when I try to access the data I get the message "Invalid use of LONG data type". If I change the column data type in the object editor to XMLTYPE, I still get the error, and cannot view the data.

  • ODI metadata export from Essbase generates a filter error

    I am trying to extract Essbase metadata into SQL with ODI v. 10.1.3.5. Several of my dimension names contain spaces. This creates an error as the MEMBER_FILTER_VALUE for the "Time Periods" dimension is interpreted as "Time" by the LKM because of the space. Spaceless dimension names export without issue. I have tried to use single quotes, double quotes, brackets, braces, etc. Nothing works. Has anyone encountered this before?

    Yes, you need to patch ODI, I recommend at least path 10.1.3.5.5
    Cheers
    John
    http:/john-goodwin.blogspot.com/

  • Exported DDL different than the SQL tab

    Hi,
    I found that the DDL generated by performing Tools->export is different than what is shown in the SQL tab on RHS window for any table.
    Is there any reason, since the SQL tab's display is not useful to recreate the table, as the sequence of constraints/indexes is incorrect.
    The tools->export generates DDL properly.
    Can someone fix this issue?

    The Tools - Export reads DBMS Metadata, the SQL Tab does not. This is intentional. However I have logged a bug about the sequence of the constraints/indexes to track that issue.
    Regards
    Sue

  • Sql Server Management Assistant (SSMA) Oracle okay for large database migrations?

    All:
    We don't have much experience with the SSMA (Oracle) tool and need some advice from those of you familiar with it.  We must migrate an Oracle 11.2.0.3.0 database to SQL Server 2014.  The Oracle database consists of approximately 25,000 tables and 30,000
    views and related indices.  The database is approximately 2.3 TB in size.
    Is this do-able using the latest version of SSMA-Oracle?  If so, how much horsepower would you throw at this to get it done?
    Any other gotchas and advice appreciated.
    Kindest Regards,
    Bill
    Bill Davidson

    Hi
    Bill,
    SSMA supports migrating large database of Oracle. To migrate Oracle database to SQL Server 2014, you could use the latest version:
    Microsoft SQL Server Migration Assistant v6.0 for Oracle. Before the migration, you should pay attention to the points below.
    1.The account that is used to connect to the Oracle database must have at least CONNECT permissions. This enables SSMA to obtain metadata from schemas owned by the connecting user. To obtain metadata for objects in other schemas and then convert objects
    in those schemas, the account must have the following permissions: CREATE ANY PROCEDURE, EXECUTE ANY PROCEDURE, SELECT ANY TABLE, SELECT ANY SEQUENCE, CREATE ANY TYPE, CREATE ANY TRIGGER, SELECT ANY DICTIONARY.
    2.Metadata about the Oracle database is not automatically refreshed. The metadata in Oracle Metadata Explorer is a snapshot of the metadata when you first connected, or the last time that you manually refreshed metadata. You can manually update metadata
    for all schemas, a single schema, or individual database objects. For more information about the process, please refer to the similar article: 
    https://msdn.microsoft.com/en-us/library/hh313203(v=sql.110).
    3.The account that is used to connect to SQL Server requires different permissions depending on the actions that the account performs as the following:
     • To convert Oracle objects to Transact-SQL syntax, to update metadata from SQL Server, or to save converted syntax to scripts, the account must have permission to log on to the instance of SQL Server.
     • To load database objects into SQL Server, the account must be a member of the sysadmin server role. This is required to install CLR assemblies.
     • To migrate data to SQL Server, the account must be a member of the sysadmin server role. This is required to run the SQL Server Agent data migration packages.
     • To run the code that is generated by SSMA, the account must have Execute permissions for all user-defined functions in the ssma_oracle schema of the target database. These functions provide equivalent functionality of Oracle system functions, and
    are used by converted objects.
     • If the account that is used to connect to SQL Server is to perform all migration tasks, the account must be a member of the sysadmin server role.
    For more information about the process, please refer to the  similar article: 
    https://msdn.microsoft.com/en-us/library/hh313158(v=sql.110)
    4.Metadata about SQL Server databases is not automatically updated. The metadata in SQL Server Metadata Explorer is a snapshot of the metadata when you first connected to SQL Server, or the last time that you manually updated metadata. You can manually update
    metadata for all databases, or for any single database or database object.
    5.If the engine being used is Server Side Data Migration Engine, then, before you can migrate data, you must install the SSMA for Oracle Extension Pack and the Oracle providers on the computer that is running SSMA. The SQL Server Agent service must also
    be running. For more information about how to install the extension pack, see Installing Server Components (OracleToSQL). And when SQL Express edition is used as the target database, only client side data migration is allowed and server side data migration
    is not supported. For more information about the process, please refer to the  similar article: 
    https://msdn.microsoft.com/en-us/library/hh313202(v=sql.110)
    For how to migrate Oracle Databases to SQL Server, please refer to the  similar article: 
    https://msdn.microsoft.com/en-us/library/hh313159(v=sql.110).aspx
    Regards,
    Michelle Li

Maybe you are looking for