Can we package tables in Oracle 10 g?

Hello

We can pack functions and procedures in Oracle, and it helps us a lot to categorize the functions and procedures. I need to know if we can pack the tables of database and classify them according to the modules of our applications.

For example:

imports of package:
-table_import_outstandings
-table_import_overdue
-table_import_bills

exports of package:
-table_export_outstandings
-table_export_overdue
-table_export_bills

Hello

I have created the schema and I am looking for a way to package tables within the schema

Maybe you can get with create Type features that can act as a subsidiary of groups and included as a column in the tables (a does not work). As far as I KNOW, we can not package the tables.

-Pavan Kumar N
-ORACLE OCP - 9i / 10g
https://www.oracleinternals.blogspot.com

Tags: Database

Similar Questions

  • How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    Hello

    So I guess you have some files in ASM, see your first existing file structure

    Select file_name

    from dba_data_files;

    and to add to an existing table, the example below (even if you're better sticking with OMFs!)-is that what you are looking for?

    SQL > create tablespace TEST1

    2 datafile '+ DATA' size 1 M;

    Created tablespace.

    SQL > select file_name in dba_data_files;

    FILE_NAME

    --------------------------------------------------------------------------------

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    6 selected lines.

    SQL > alter tablespace TEST1

    2 Add datafile ' + DATA / mynewfile01.dbf ' size 2 m;

    Tablespace altered.

    SQL > select file_name in dba_data_files;

    FILE_NAME

    --------------------------------------------------------------------------------

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    + DATA / mynewfile01.dbf

    Thank you

  • is that we can transform a GML table with oracle 11g?

    I have a project with GML and this is the first time that I work with.
    I just need to know if I can transform a normal table with oracle of GML.

    I found that we can do this with xml using the simple features sql example:

    SQL:
    SELECT XMLElement (name 'Department',
    XMLAttributes (deptno),
    XMLAgg (XMLElement (name"employee", ename))) .getStringVal () as a RESULT
    FROM scott.emp
    GROUP BY deptno;

    result:
    < Department deptno '34' = >
    ename < employee > < / employee >
    < / Department >

    < Department deptno = "35" >
    ename1 < employee > < / employee >
    < / Department >...

    We can do something like this with oracle11g for GML instead of XML (when we have spatial data).

    I hope that you have the answer or a reference that can help.
    Thank you
    Best regards

    Hi, -.

    We have the following conversion functions of GML and KML to/from SDO_GEOMETRY.
    We both support GML2 and GML 3.1.1:

    In 11.1.0.7, you will find the following functions:

    SDO_UTIL. FROM_GML311GEOMETRY: Converts a fragment of geography markup language (GML 3.1.1) a spatial geometry.
    SDO_UTIL. FROM_GMLGEOMETRY: Converts a fragment of geography markup language (GML 2.0) a spatial geometry.
    SDO_UTIL. FROM_KMLGEOMETRY: Converts a KML (Keyhole Markup Language) of a Spatial geometry object document.

    SDO_UTIL. TO_GML311GEOMETRY: Converts an object of spatial geometry to a fragment of language (GML version 3.1.1) geography markup based on the geometry types defined in the schema geometry.xsd Open GIS Consortium document.
    SDO_UTIL. TO_GMLGEOMETRY: Converts an object of spatial geometry a geography markup language (GML 2.0) fragment based on the geometry types defined in the schema geometry.xsd Open GIS Consortium document.
    SDO_UTIL. TO_KMLGEOMETRY: Converts a Spatial geometry object to a KML (Keyhole Markup Language) document.

    See also User Guide Pro Oracle Spatial and Oracle Spatial for book of 11g Oracle database for more details and examples.

    Please let us know if you have any other questions. We will be happy to help you.

    I hope this helps.
    Best regards
    Baris

  • Save a table in Oracle R12

    Dear members,

    Are the steps to save a table in Oracle R12 is identical to the one off Oracle 11i?

    I want to say can we use the same ADD_DD package and record all custom tables and their corresponding columns?

    Can someone please shed some light on this.

    Thanks in advance.

    Yes - same as in 11i - pl see the documentation - http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T303920.htm#I_sx2Daoltabl

    HTH
    Srini

  • Packages provided by Oracle

    Hi all

    Quick question - where can I find packages provided by Oracle in TOAD for Oracle (12.7.1.11)?

    So far I can't see my own packages in my schema in the schema browser, but I'd like to browse the pre installed, for example, DBMS_UTILITY, DBMS_RANDOM package, etc.

    Thank you.

    In the dropdown above schema object, select sys and the package should appear under object type of packets, hope this helps.

  • Mapping of 12 ODI is a failure loading the table to the table in oracle DB

    Hi Experts,

    I'm starting to ODI, attempts to load data from the Table to the Table in Oracle DB. Source table and target table are in the same PB in different schema

    I created my own work, also agent and master repository.

    Started with the agent, and I could see the status as Planner started for referential work * on Agent OracleDIAgent1.

    Created the agent in topology and successfully tested.

    Created data and connections physical schema of the source and target servers, Test connection is successful.

    Created the context and logical schema defined for the source and the target.

    Mapped to the corresponding physical schema context.

    Diagram logical and physical mapping is accomplished in the context.

    Created for source and target models, able to view the data in the source model.

    Created a simple map and put in source and target component context.

    LKM selected as LKM SQL for SQL

    Select IKM as IKM Oracle Insert.GLOBAL

    After execution, the mapping is a failure with the error below

    Drop table work - LKM SQL for SQL

    ODI-1222: start failure on agent edge internal: logical schema * is not found in the main repository.

    Create the table work - LKM SQL for SQL

    ODI-1222: start failure on agent edge internal: logical schema * is not found in the main repository.

    ODI-1222: start failure on agent edge internal: logical schema * is not found in the main repository.

    at oracle.odi.runtime.agent.execution.AbstractSessionTask.getSrcDataServer(AbstractSessionTask.java:1646)

    at oracle.odi.runtime.agent.execution.interpreter.SessionTaskCodeInterpreter.codeInterpretation(SessionTaskCodeInterpreter.java:132)

    at oracle.odi.runtime.agent.execution.interpreter.SessionTaskCodeInterpreter.codeInterpretation(SessionTaskCodeInterpreter.java:80)

    at oracle.odi.runtime.agent.execution.SessionTask.createTaskLog(SessionTask.java:324)

    at oracle.odi.runtime.agent.execution.AbstractSessionTask.execute(AbstractSessionTask.java:821)

    to oracle.odi.runtime.agent.execution.SessionExecutor$ SerialTrain.runTasks (SessionExecutor.java:2024)

    at oracle.odi.runtime.agent.execution.SessionExecutor.executeSession(SessionExecutor.java:562)

    to oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$ 1.doAction(TaskExecutorAgentRequestProcessor.java:718)

    to oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$ 1.doAction(TaskExecutorAgentRequestProcessor.java:611)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:203)

    at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor.doProcessStartAgentTask(TaskExecutorAgentRequestProcessor.java:800)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 1400 (StartSessRequestProcessor.java:74)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:702)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:180)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:108)

    at java.lang.Thread.run(Thread.java:722)

    Please help me with the problem above,

    Thanks in advance.

    Kind regards

    Srikanth

    Hi Srikanth,

    It is usually better to create a separate scheme for the scheme of work, but you can keep the data and schema of work even. Also in your error log, the error should now be to the right of the IKM? No LKM. Try changing the logical schema name and see if it works.

    Thank you

    Ajay

  • How to use Text Mining (tm) package Distribution R Oracle?

    Hello

    I'm using Oracle R distribution 3.0.1 and try to build a wordcloud from data stored in the Oracle database table column. I searched the web and found install and charge the package tm for this purpose. When I'm trying to run the command to install the package of tm , it generates the following error

    > install.packages("tm")
    Installing package into ‘/home/oracle/R/x86_64-unknown-linux-gnu-library/3.0’
    (as ‘lib’ is unspecified)
    Warning message:
    package ‘tm’ is not available (for Oracle Distribution of R version 3.0.1) 
    

    How this problem could be solved.

    Any help will be much appreciated.

    Thank you

    Kind regards

    New versions of the package tm have been published since R - 3.0.1, so you will need to install the dependencies tm & manually.  This blog contains instructions to help guide the process:

    https://blogs.Oracle.com/R/entry/r_package_installation_with_oracle

    See section 6: Installation of older versions of R packages.

    Sherry

  • Function table in oracle

    Hi all

    I am using Oracle 11g

    I want to know in order to learn

    What is the CURSOR in the function table.

    What is its usefulness

    Can someone explain to me.

    SELECT x.*

    (TABLE (package1.function1)

    CURSOR (SELECT

    t.*

    OF test1 t))) x

    Thank you

    What is the CURSOR in the function table.

    What is its usefulness

    Can someone explain to me.

    SELECT x.*

    (TABLE (package1.function1)

    CURSOR (SELECT

    t.*

    OF test1 t))) x

    This slider is NOT 'in the function table. It is in the call to YOUR function named "packagae1.function1" and the function returns a collection. If it is the result of the collection of YOUR function call which is 'in the function table.

    Your probable function takes a REF CURSOR as a parameter, so the code above uses the CURSOR operator to create a cursor from a subquery.

    Your function then returns a collection and SCOREBOARD operator is used to make this collection available in SQL.

    See FUNCTIONS TABLE in the Oracle documentation. A simple search for 'oracle 11g table function' returns the Oracle doc as the FIRST result listed:

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28425/pipe_paral_tbl.htm

    This chapter describes the functions of table

    . . .

    Overview of the functions of table

    Table functions are producing a set of lines (a nested table or a varray) that can be queried as a physical database table. You use a function table as the name of a database table, in the FROM clause of a query.

    A table function can take a set of input lines. A parameter of the input collection can be of a collection type or a REF CURSOR .

    . . .

    Look at the examples 5-13 and 13-6, because they show the code for your EXACT example:

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28425/pipe_paral_tbl.htm#CIHEGADE

    . . .

    Example 13-6 How to use a function Table in pipeline with REF CURSOR Arguments

    SELECT * FROM TABLE(StockPivot(CURSOR(SELECT * FROM StockTable)));
    

    In the previous query, the function table in pipeline StockPivot retrieves the lines of the CURSOR subquery SELECT * FROM StockTable , performs the transformation and channels the results to the user in the form of table. The function produces two lines of output for each input line (items in the collection).

    Note that when a CURSOR subquery went from SQL for a REF CURSOR argument of function as in the previous example, the referenced cursor is already open when the function begins to run.

    As the doc example, as in your example, a subquery of CURSOR to create a cursor to be used as a function parameter. Example 13 - 5 has the actual code for the function.

    The documentation is your FRY - don't be afraid to use it.

    If you try to learn something a good question to ask on the forums is: where can I get more information about the functions of the table (or other topic).

    Then, we can direct you to the Oracle documentation that covers this topic.

  • Copy of database SQL Developer - you can copy a database non-Oracle?


    I was hoping to use the database copy utility in Oracle SQL Developer 4.0.2.15 to copy data from a sybase database table in an oracle database table. I created both the Sybase and Oracle database connections, however only the Oracle connection is available in the 'Source' and 'Destination connection' lists drop-down in the copy database wizard. Is it possible to use this utility to copy a non-Oracle database, any advice would be much appreciated.

    Assuming that you don't have just to copy a single table (or just a handful of tables), 'copy Oracle"function should appear when you right click on your target table from the Tables node on the sybase connection.

    If you need to migrate tables more this can become tedious, but in this case probably consider using specially designed SQLDeveloper migration functions to migrate all drawings of third to Oracle databases (for this right click on the connection to sybase and choose "Migrate to Oracle").

  • Ongoing replication of the selected tables from Oracle to SQL Server

    Hi all

    How can we replicate selected tables to Oracle 11 g for SQL Server 2008/2012?

    Is GoldenGate the only option

    No matter who did it before or have the steps to do it?

    Thank you

    Define "replicate".

    If you have no budget, you can open a connection directly from SQL Server to Oracle, or vice versa. In Oracle, they are called links DB; in SQL Server, they are called "linked servers".

    Datanamic also have tools that claim to do the cross-DB replication. I have no experience with them and is not an endorsement - I know they exist.

  • I want to know when we issue statement truncate table in oracle.

    I want to know when we issue statement truncate table in oracle. No newspaper will be write in the redo log. But we can recover data using flashback or SNA. I want to know where the actually truncate table statement log is stored in the oracle database. Please explain to me in detail step by step.

    >
    I understand your SNA. But I want to know where the truncate statement stored log. But in the redo log, no entry for truncate.but I want to go which connect there is no market value back...
    >
    If you are still wondering after getting the answer so you don't "understand".

    You have received the reply above. Archive of flashback stores data.

    See the link provided above to CREATE an ARCHIVE of FLASHBACK in the doc of SQL language
    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_5010.htm
    >
    TABLESPACE clause

    Specify the table space where the data archived for this flashback data archive referring to be stored. You can specify that a tablespace with this clause. However, you can then add tablespaces to archive flashback with a statement ALTER FLASHBACK ARCHIVE database.
    >
    The data is moved to storage of archives and restored from there when you query for archive flashback.

  • I am new to FDQM I need to connect from the table Source 'Oracle '...

    This is the first time for me to do this, you have any Document to the connection on the Source table in Oracle, to any table target using FDQM
    is it valid?
    If valid how can I make the integration with FDQM...?
    I called ODI,
    Can be defined from any source to any target,
    In FDQM I can set to take data from the Source of the table is Oracle to load in the EPM or any target system.

    Published by: Joe on December 10, 2011 19:52

    Please refer to paragraph "Example of Script integration" on page 200 of the FDQM 11.1.2 administration guide.
    This example connects to a SQL Server table (you may have to tweak it a little so you can connect to Oracle table), but the example can give you a good impression of what is necessary to establish a direct link.
    Kind regards
    Jeroen

  • While problems brought together three tables in Oracle

    Hello

    I'm trying to join the three tables in Oracle, but get unexpected results. Here it is the situation.

    Table A has 10 rows and I want the line with Max date, table B has 20 rows and I want the line with Max date, so these 2 tables, I want 2 rows. Similarly, there are 10 tables with a huge amount of data.
    So I created another table called table key and extract the name of the Table, the Table key (common across all the tables and plan called of code) and entered into force (it is a date max)

    If key table now has a line of each table.

    When I joined the table a (E221), table B (E227) and key table with query below, it does not result in any line. Can you please on how it should be resolved. Here it is the data from 3 tables.

    Table A (E221)
    PLAN_CODE DATE CAR GRP
    12040005 19900801 1204 0005 20
    12040005 19850201 1204 0005 19
    12040005 19840801 1204 0005 20
    12040004 20080806 1204 0004 20
    12040004 20080804 1204 0004 20
    12040004 20070701 1204 0004 20
    12040004 20060101 1204 0004 20
    12040004 20020101 1204 0004 20
    12040004 20010730 1204 0004 20

    TABLE B (E227)

    12040005 19850201 1204 0005 0005
    12040005 19840801 1204 0005 0080
    12040004 20091001 1204 0004 6782
    12040004 20070901 1204 0004 6782
    12040004 20051101 1204 0004 6782

    Key table

    12040004 20080806 E221
    12040005 20080806 E221
    12040004 20091001 E227
    12040005 20091001 E227

    Query used
    SELECT E221.*,
    E227.*,
    KEY_PLAN_CODE.*
    OF E221
    JOIN INTERNAL KEY_PLAN_CODE
    ON KEY_PLAN_CODE. EC_PLAN_CD = E221. EC_PLAN_CD AND KEY_PLAN_CODE. MAX_EFF_DATE = E221.cg_cvr_BS_EFF_DT
    AND KEY_PLAN_CODE. EC_TRAN_CODE = E221. EC_TRAN_CODE
    JOIN IN-HOUSE E227
    ON (KEY_PLAN_CODE. EC_PLAN_CD = E227. EC_PLAN_CD
    AND E227. PLAN_EFF_DT = KEY_PLAN_CODE. MAX_EFF_DATE
    AND KEY_PLAN_CODE. EC_TRAN_CODE = E227. EC_TRAN_CODE)

    Any suggestions would be helpful.

    I'm still a little confused as to what should be returned.

    Your key table includes:
    12040004 20080806 E221
    12040005 20080806 E221
    12040004 20091001 E227
    12040005 20091001 E227

    I suppose you want returned:
    E221 line with plan_code 12040004 and the date 20080806
    E221 line with plan_code 12040005 and the date 12040004
    Line E227 with plan_code 12040004 and the date 20091001
    Line E227 with plan_code 12040005 and the date 20091001

    Your query returns original nothing because, for example, the line containing plan_code 12040004 and date 20080806 can does not match anything in the E227 table with this plan_code and the date.

    I think you are saying that what you want is, for each value of different plan_code, you want recording E221 corresponding to "E221" key_table folder with the date of the registration, and you also want to record E227 corresponding to "E227" key_table folder with the date of registration. I also guess that there must be a record E221 both INAT E227, otherwise nothing is returned for this plan_code.

    I suppose also that there is no record more "E221" and no more a 'E227' record in key_table for any value special plan_code.

    In this case, you want to do something like this:

    SELECT K.*, E221.*, E227.*
    FROM
    (
      SELECT k221.ec_plan_cd, k221.max_eff_date AS e221_date, k227.max_eff_date AS e227_date
      FROM key_plan_code k221
      JOIN key_plan_code K227
      ON k227.ec_plan_cd = k221.ec_plan_cd
      WHERE k221.ec_tran_code = 'E221'
      AND k227.ec_tran_code = 'E227'
    ) K
    INNER JOIN E221
    ON (E221.ec_plan_cd = K.ec_plan_code AND E221.cg_cvr_bs_eff_dt = K.max_eff_date)
    INNER JOIN E227
    ON (E227.ec_plan_cd = K.ec_plan_code AND E227.plan_eff_dt = K.max_eff_date)
    

    The subquery K Gets a line for each ec_plan_cd in key_plan_code with a record 'E221' and a «E227» folder

    I'm assuning ec_tran_code is the column of key_plan_code with 'E221' and 'E227. " If this is not the case, use the correct name.

    -Don

  • What are the different types of tables in oracle - please help

    I want to know the different types of tables of orcle... Please help me

    There are seven types of tables in Oracle.

    1. organized bunch of tables
    2 index organized tables
    3 clustered index tables
    4 hash clustered tables
    5. nested tables
    6. global temporary tables
    7 tables of objects
    Source: http://www.adp-gmbh.ch/ora/concepts/tables.html

    But if you ask the types of tables in sense of the uses they are n types:
    1 step tables
    2. operational tables
    3. functional tables
    4. layout tables
    5 archive tables
    6. other tables
    Source: http://www.databasejournal.com/features/oracle/article.php/3616476/Types-of-Tables-in-Oracle.htm

    And of course, the full details can be found in the documentation.

    HTH
    Girish Sharma

  • Temporary tables in Oracle

    Hi all


    I develop a .net application with back-end in oracle 10g. I had previously worked with sql server 2005,2008 and I am new to oracle.

    I'm working on a query complex that requiries, the temporary table inside the procedure. In sql server easy to create and drop the temporary table inside the proc.

    Can I use a specific Transaction TWG to store and process temporary data inside my procedure? My web application must be linked to the database via a a username and a password. Since being a web background multi-user executes the procedure at the same time, registered under the same user name and password...

    I know it's a coomon question, but I need him...

    It is very complicated to use WITH SELCT or inline views etc...

    Thank you

    Kris.

    I know it's a coomon question, but I need him...

    If you know that this is a frequently asked question, then you must know the common answer. But we're going there repeat once more.

    In Oracle temporary tables are permanent objects. It was only the data in them that is temporary. So for your scenario, you should have the DBA create table once, like any other table.

    The thing with temporary tables is that each session sees its own data and nothing else. If your procedure can fill the table with data, treat it and send it back without a hitch.

    Since being a web background multi-user executes the procedure at the same time, registered under the same user name and password...

    Is not serious: the display of the data is controlled by session. If you do not have a problem providing the table is filled and the result set returned in a single call.

    It is very complicated to use WITH SELCT or inline views etc...

    Yes it's hard. Fortunately, CPUs get more powerful and continue to become cheaper, bandwidth so that our systems to continue to deal with the growing number of suck is code thrown at them. Is not Moore's law wonderful :)

    Cheers, APC

    blog: http://radiofreetooting.blogspot.com

Maybe you are looking for

  • It is possible to filter the messages sent to get copies to individual records, as messages do?

    I have many (50 +) files in my email to contain messages from different organizations and individuals with which I match. I copy most of my incoming emails to these folders to archive my mail to the sender. In some cases, I would also like to put cop

  • bad leaders or 6008

    I use a device 6008 of nor, to take into account a descrete TTL-Signalls particles counter. 99% of the time, the nor 6008 account are correct and the same as the particle counter, but sometimes I get a bad counts of the ni6008. The 6008 NO account fa

  • Simple pass works only on Windows 7 pro standard user

    I looked through countless questions simple pass and found no clue. I'm used to simple passage, recognizing the need for a u/p that it registers the new website or offers for me to slide my finger for an existing installation.  This is nothing.  It i

  • Copy and paste the values in the table

    I have a program that has several bays.  Recently, there were about 80 new values more than I needed to add to each table.  I just finished adding new values to one of the tables - is possible I can highlight and copy this entire block of values I ad

  • error code 0 x 80248007

    How can I solve this problem?