How to export view definitions

I'm having following issue:
I have created my own view definitions in Endeca Studio, via View Manager UI, and export them by following the recommendations found at https://wikis.oracle.com/display/endecainformationdiscovery/Export+View+Configuration.
Such recommendations are to create a graph that connects to Endeca Data Store and saves all view configuration in the required format for the LoadViewDefinitions graph.
Actually, I was able to create the graph and run it. After that, the xml file with the view definitions was created.
However, when I tried to run the LoadViewDefinitions graph, to import the definitions of the xml file to other data store, the following error came out:
Interpreter runtime exception in function substring on line 5 column 26 - 'String index out of range: -161'
By looking at the xml file and comparing it with other xml files, I could see that it contains only one long line with all the code, and I think this is the cause of the import failure.
Could anyone help me with this?
Thanks

Hi,
Not sure if I understood when you said to delete that white space from xml file. The thing is that the xml file contains only one long line with all code, like this:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><listEntitiesResponse xmlns="http://www.endeca.com/endeca-server/sconfig/1/0"><semanticEntity key="LandedCost" displayName="LandedCost"><definition>DEFINE LandedCost AS SELECT...
While other files that work are like this:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<listEntitiesResponse xmlns="http://www.endeca.com/endeca-server/sconfig/1/0">
<semanticEntity key="LandedCost" displayName="LandedCost">
<definition>
DEFINE LandedCost AS SELECT ...
What should I do with the one that does not work? Which white space are you referring to?
Thanks

Similar Messages

  • How to export the definition of an universum??

    Post Author: mms110
    CA Forum: Crystal Reports
    Hi all!How can i export the definition of an business objects universium?I need it in xml. is this possible?Best regards,mms110

    Hi,
    I think this is a bug. If I remember correct I used the script generated for deployment, copied it from OWB and pasted the script into sqlplus and the table was upgraded they way it should. But in OWB repository the table remains with status changed. And for me that created a few new problems when things became out of sync with eachother. Luckily for me this was in development and not production so I could replace the table, I just had to reload a lot of tables so the foreign keys would become correct. So its not really a good solution.
    There is a few other annoying bugs around that I've discovered. Synchronizing a table out of a mapping makes all the constraints disappear from the table design.
    But hopefully this is something that will be fixed soon.
    Regards Ragnar

  • How to export view

    can exp/imp export the view in the user schema? If it can, how to write parfile?
    please help...

    Impdp/expdp is available with 10g+, you can see Note 341733.1 Export/Import DataPump Parameters INCLUDE and EXCLUDE - How to Load and Unload Specific Objects for complete information, here an example:
    SYS@orcl > create directory scott_dir as '/oradata';
    SYS@orcl > grant read, write on directory scott_dir to scott;
    SYS@orcl > create user scott_vw identified by tiger default tablespace example;
    SYS@orcl > grant create session, create view, create table to scott_vw;
    $ expdp scott/tiger directory=scott_dir dumpfile=scott_vw.dmp include=view (all views)
    $ expdp scott/tiger directory=scott_dir dumpfile=scott3.dmp include=view:\"\=\'EMP_VW\'\" (only emp_vw)
    $ impdp system/*** directory=scott_dir dumpfile=scott_vw.dmp remap_schema=SCOTT:SCOTT_VW (import all the views into schema scott_vw)
    $ impdp system/*** directory=scott_dir dumpfile=scott_vw.dmp include=view:\"\=\'EMP_VW\'\" remap_schema=SCOTT:SCOTT_VW (import only emp_vw into schema scott_vw)Enrique

  • How to export reports definitions?

    Hello,
    I would like to transfer my reports definitions to an other EM grid control, is it possible?
    Thanks
    Edited by: user4139871 on Feb 26, 2009 8:34 AM

    Finally it's not possible !
    ANSWER FROM ORACLE
    ==============
    No, this functionality is not available in current versions of the Grid Control product. If you want to see this capability included in future versions, a Product Enhancement Request needs to be opened. Reference the following Note available on My Oracle Support/Oracle MetaLink for more information on this process:
    Note.214168.1 Logging an Enhancement Request

  • How to Export Snapshots and Materlized View in Oracle 9i

    Hi,
    How to Export Snapshots and Materlized View in Oracle 9i .
    I require to Migrate from 9i to 10g with either Export or Script.
    Please help

    Using exp-imp for snapshots generally causes problems, at least for me. I would prefer taking their creation scripts and running them on the new database.
    By the way, what do you mean by "migrate from 9i to 10g"? Are you trying to create the same snapshots in another (10g) database or are you trying to upgrade your 9i database to 10g? If it is the latter then you can just upgrade the database automatically with the upgrade assistant or manually using upgrade scripts.

  • How to export all the views in one schema?

    Hi,
    I have more than 1000 views in one shcema.
    How to export all the views in one schema?
    Amy

    Hi,
    It's not a very easy question, I have develop a script wich create a script to create view from old database to new database :
    /* &1: Oracle SID Source
    /* &2: Oracle Schema Source
    SET HEAD OFF
    SET VERIFY OFF
    SET PAGESIZE 0
    SET LONG 40000000
    SET LONGCHUNKSIZE 2000
    SET LINESIZE 2000
    SET FEEDBACK OFF
    CREATE TABLE RECREATE_VIEW(VIEW_NAME VARCHAR2(30), TEXT LONG);
    /* Selection du texte de la vue */
    DECLARE
    w_text long;
    w_text_debut long;
    w_text_column long;
    w_view varchar2 (30);
    w_schema varchar2 (8):='&2';
    CURSOR w_cursor IS
    SELECT a.view_name, a.text
    FROM dba_views a
    WHERE a.owner = w_schema;
    CURSOR w_column IS
    SELECT DECODE (ROWNUM,
    1, 'CREATE OR REPLACE FORCE VIEW ' || '&' || '1..'
    || a.table_name || chr(10)
    || '('
    || a.column_name
    || DECODE (ROWNUM, nbcolumns, ')' || chr(10) || 'AS' || chr(10), ',' || chr(10))
    FROM (select column_name,table_name
    FROM dba_tab_columns
    WHERE owner = '&1'
    AND table_name = w_view
    order by column_id ) a,
    (SELECT COUNT (1) nbcolumns
    FROM dba_tab_columns
    WHERE owner = '&1'
    AND table_name = w_view
    GROUP BY owner, table_name) b
    order by rownum;
    BEGIN
    OPEN w_cursor;
    LOOP
    FETCH w_cursor INTO w_view, w_text;
    EXIT WHEN w_cursor%NOTFOUND;
    w_text_debut := NULL;
    w_text_column := NULL;
    OPEN w_column;
    LOOP
    FETCH w_column INTO w_text_column;
    EXIT WHEN w_column%NOTFOUND;
    w_text_debut := w_text_debut || w_text_column || ' ';
    w_text_column := NULL;
    END LOOP;
    CLOSE w_column;
    w_text := w_text_debut||w_text||';';
    insert into RECREATE_VIEW(VIEW_NAME, TEXT) VALUES (w_view, w_text);
    COMMIT;
    w_text := NULL;
    w_view := NULL;
    END LOOP;
    CLOSE w_cursor;
    END;
    SPOOL scripts_views_&1..sql
    PROMPT SPOOL scripts_views_&1..log
    PROMPT
    SELECT TEXT
    FROM RECREATE_VIEW;
    PROMPT
    PROMPT SPOOL OFF
    PROMPT
    SPOOL off
    PROMPT /* Formattage du fichier SQL */
    !sed 's/[ ]*$//' scripts_views_&1..sql > aprilia.tmp
    !rm scripts_views_&1..sql
    !mv aprilia.tmp scripts_views_&1..sql
    DROP TABLE RECREATE_VIEW;
    EXIT
    I hope that help you.
    Nicolas.

  • How to export a view

    Hi,
    I am working in 10g and i want to take the export of ony one view just like one table.Is it possible.
    thank in advance.

    Do you want to export the view definition or the data that would be selected from the view?
    For the view definition, don't use dbms_metadata as it can choke if there are not spaces between commas and columns (among other things). If you go to www.optimaldba.com you can download a zip file containing (among other things) several calls to cleanly extract view definitions. (the file location is http://www.optimaldba.com/papers/RMOUG.zip)
    If you are wanting to export the data and the view is simple, you might try using the QUERY clause for export

  • How to initialize org in a view definition?

    Hi,
    I am creating a custom view which uses Oracle standard function in the condition of the view definition. The function requires org intialization to provide the correct data. The view needs to be accessed in other DB instance via DB link.
    So how should the org be initialized so that the view returns the correct data when accessed from the remote data base using the DB link?
    Thanks!
    Darshini

    Hi Darshini,
    ok, then the question is: where is your data, in which instance?
    I see two options:
    1) Your report runs on the primevera DB but your data resides in the APPS DB and you have a DB link between the two instances. Assuming the DB link is "PRIM_TO_EBS" you could create the view on the primevera instance like this:
    select po_header_id
    from po_distributions_all@PRIM_TO_EBS pod
    where (apps.po_intg_document_funds_grp.get_active_encumbrance_func@PRIM_TO_EBS
    ('PO',
    pod.po_distribution_id
    ) = 0 I do not really know what the procedure/function fnd_client_info.set_org_context() does, but would be curious to know if your view above returns data if you do a:
    ... fnd_client_info.set_org_context pkg@PRIM_TO_EBS(...) upfront?!
    But I guess this will create some session variable that will probably get lost when you finish the function and go to the View. But you can give it a try.
    2) second approach that I see:
    Copy the data to the reporting instance via some scheduled jobs or so. This way you could copy the data after this operating unit / org id was initialized. The pure out put of the data without the APPS security model anymore.
    Another thing: You can check out in the discoverer forum, there are some guys that know much more about the APPS security model and how to get reports working with this.
    Another idea: Do you really need this function apps.po_intg_document_funds_grp.get_active_encumbrance_func() ? Maybe you can design your report based on just tables? We have reports on Purchasing data as well, and we did not use any built-in apps functions like this to get what we need.
    regards,
    David.

  • How to view definition of a view in the database

    Hi !
    I want to see the definition of a view that has already been created in the database. Incidently I misplaced its script. How can I see the definition since when I go to all_views table, it shows text as long datatype aand can't be displayed in sql*plus nor am I able to insert it into a new table as it gives error..."illegal use of Long datatype "
    Any help will be welcome..
    Regards,
    Shobhit

    at the sqlplus prompt,
    set long 50000
    Then you should be able to see the entire view definition at the sqlplus prompt.
    You should not perform any dml operations in system level tables like all_views, dba_views etc.
    -Ashutosh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by shobhit kumar:
    Hi !
    I want to see the definition of a view that has already been created in the database. Incidently I misplaced its script. How can I see the definition since when I go to all_views table, it shows text as long datatype aand can't be displayed in sql*plus nor am I able to insert it into a new table as it gives error..."illegal use of Long datatype "
    Any help will be welcome..
    Regards,
    Shobhit<HR></BLOCKQUOTE>
    null

  • How to export iPhoto Album in iMAC and have similar folder structure(with Timestamps) which can be viewed in finder

    How to export iPhoto Album in iMAC and have similar folder structure(with Timestamps) which can be viewed in finder
    In simple terms, I wanted to view the photos in Windows system, similar strcture of iPhotos

    If you want to copy all of your photos to a Windows machine and have them in folders representing the iPhoto Events the were in quickly and easily just do the following:
    1  - open the library with the Finder as shown in this screenshot:
    2 - COPY the Originals/Masters folder to the Desktop.
    3 - copy the Originals/Masters folder to the Windows machine.
    This will give you all of your original image file in their Event folder on the Windows machine.
    NOTE:  With iPhoto 8 or newer the Event folders in the Masters folder will be titled by date (EXIF) if imported from a camera.  If imported from a folder the event folder will have the same title as the source folder.  If imported singularly or in a group without a folder the title will be a date, either the EXIF date or import date.
    With iPhoto 7 (08) and earlier the Event folders in the Originals folder will have the same title as the Event has in the library.
    This method would be quicker but not provide the additional metadata you might have added in iPhoto like keywords, titles, descriptions that exporting out of iPhoto with Format=JPEG and the checkboxes selected to include keywords, titles, places, etc, checked.
    OT

  • How to Export from table view to Excel (not BI query)?

    There is a 'How to' document explaining how to export from an iView using a BI query:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123
    However:
    This 'How-To' document is using an example of a BEx query. I am not using a BEx query, therefore I do not have an "Info port". How can I download to Excel from a table view that is not an iView of a BI query? (It is just a internal table coming from a BAPI).

    keenneth,
    i am using the query from SQL server, i am having the same problem of not having info port. so did you find a work around for exporting to excel with filters for non sap queries ?
    any body who had come across this situation , plz guide me.
    thanks in advance
    ravi

  • How may I view fonts in the watermark menu without having to export the image first?

    How may I view the fonts in the watermark menu without having to export the image first?

    Go to the Mac App Store main page and click on Support under Quick Links.
    (82704)

  • Portal: custom i-view definition (transaction) how to hide command box

    Dear Sirs,
    we are trying to define a transaction i-view (displaying a SRM transaction)
    in portal but hiding the command box.
    The i-view has been defined under portal content \..\iview\GUI\
    We have tested some values in "Parameters Forwarded to Transaction" in I-VIEW definition,
    like...
    noheaderOkCode = 1
    WEBGUI_SIMPLE_TOOLBAR  = hide, no etc..
    listed in other threads
    but whitout any effect.
    Is this a possible feature and what are the correct values ?
    From SRM side we have tested the transaction in SE93 in both modes, EWT and normal.

    Sorry but we have any result with these values
    ~NOHEADEROKCODE = 1 or
    ~WEBGUI_SIMPLE_TOOLBAR = 0
    In the "Parameter forwarded to transaction" in the iview definition from portal.
    The command box appears in any case.
    Whe should remove also the "menu" button.

  • How to export a user and their schema from one 10g database to another?

    Hi,
    I would like to export a user and their entire schema from one 10g database to another one. How do I do this?
    thx
    adam

    If you want to export a user and the schema owned to the user, and import to the same user in a different database, or a different user in the same database, you can use the exp and imp commands as described in the Utilities manual.
    These commands are very versatile and have a lot of options - well worth learning properly. To give you a simplistic shortcut, see below - I create a user 'test_move', create some objects in the schema, export, create a new user in the database 'new_move' and import.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:46:54 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user test_move identified by test_move;
    User created.
    SQL> grant create session, resource to test_move;
    Grant succeeded.
    SQL> connect test_move/test_move
    Connected.
    SQL> create table test (x number);
    Table created.
    SQL> insert into test values (1);
    1 row created.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> exp system/????? file=exp.dmp owner=test_move
    Export: Release 10.2.0.1.0 - Production on Sat Mar 11 21:48:34 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user TEST_MOVE
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user TEST_MOVE
    About to export TEST_MOVE's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export TEST_MOVE's tables via Conventional Path ...
    . . exporting table                           TEST          1 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:49:23 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user new_move identified by new_move;
    User created.
    SQL> grant create session, resource to new_move;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> imp system/????? file=exp.dmp fromuser=test_move touser=new_move
    Import: Release 10.2.0.1.0 - Production on Sat Mar 11 21:50:12 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . importing TEST_MOVE's objects into NEW_MOVE
    . . importing table                         "TEST"          1 rows imported
    Import terminated successfully without warnings.
    oracle@fuzzy:~>                                                       If moving between databases, remember to set the SID properly before the import. If keeping the same userid, skip the from/to stuff in the import.
    There are many variations on the theme ...
    You can simplify this. You can select tables individually. You can use a parameter file. You can transport all the constraints and data. You can skip the data and only move the definitions. You can get some help (imp/exp help=yes).
    And, if it's all 10g, there is a new and improved facility called expdp/impdp (dp = data pump) which has a lot more capability as well, including direct transfer (no intermediate file) together with suspend/restart. Also documented in the Utilities manual.

  • SAP HANA: IMPORT/EXPORT Views

    We can Import/export tables using hdbsql CLI.
    But Is there any way by which we can export/import Views(attribute,analytic,calculation) using hdbsql CLI.
    I raised above question some days back
    SAP HANA: IMPORT/EXPORT Views | SCN
    Also while checking on internet I found another link for the same issue:
    http://scn.sap.com/thread/2141404
    And from experts answers, I came to conclusion that Import/Export Views(Attribute/Analytic/Calculation views)in SAP HANA is not possible through hdbsql CLI/ SQL commands.Now Is there a way where I can confirm this from SAP HANA program management guys?

    Lars,
    Thanks for the explanation.
    What I am trying to achieve is to create an automate script which should export all tables and views for a schema and again import tables and views in a different schema.
    table part is done, But stuck in view part.
    I tried the below command and was able to export the calculation view which I created in Content and exists as
    _SYS_BIC-->Package(same name as schema where all the tables are stored) --> View Name.
    Command used was:
    EXPORT  "<Schema_Name>"."<Package_Name>/<View_Name>"  INTO '<path>'
    Now I have 2 ques :
    1) I am not sure how to import this exported view. I tried below command but it failed:
    IMPORT  "<Schema_Name>"."<Package_Name>/<View_Name>"  FROM '<path>'
    2) Not sure how to export and import all the views.
    I did IMPORT SCAN of the path as well and found below entries for the exported view in the mentioned path:
    SCHEMA_NAME, OBJECT_NAME, OBJECT_TYPE, EXISTS
    "_SYS_BIC", "<Packagename>/CalculationViewName>", "VIEW", 1
    "_SYS_BIC", "<Packagename>/AnalyticViewName>", "VIEW", 1
    "_SYS_BIC", "<Packagename>/CalculationViewName>/olap", "VIEW", 1
    "_SYS_BIC", "vwTile1ALLData", "VIEW", 1
    Any Inputs would definitely help. Thanks.

Maybe you are looking for