Some simple queries on TimesTen

Hi, I am completely new to TimesTen, wondering just how he can interact with the standard Oracle databases

Q1. What is the connection to TimesTen method? i.e. it is Sql * Net?

Q2. What is used for the backup TimesTen databases? They are essentially a backup of the transaction logs, so no matter what backup file based method? for example installation standard backup of the operating system on which is deployed TimesTen?

Q3. I assume that tools such as Data Pump, Exim etc do not work with TimesTen?

Q4. TimesTen usable as Data Source for Oracle BI Server (i.e. OBIEE) or, in the alternative to hold the repository BI?

Q5. Are the available DML and DDL Sql, basic commands to be used with TimesTen?

Thank you
Jim

Hello, Jim. With regard to your questions:

Q1. What is the connection to TimesTen method? i.e. it is Sql * Net?

A1: When TimesTen communicates with Oracle, it regularly uses SQL * Net to mechanisms. For Oracle DB, it appears as just another customer.

Q2. What is used for the backup TimesTen databases? They are essentially a backup of the transaction logs, so no matter what backup file based method? for example installation standard backup of the operating system on which is deployed TimesTen?

A2: TimesTen offers it own backup and restore utilities (ttBackup/ttRestore) that allow you to create online, consistent, complete and incremental backups. These tools are the only supported way to back up a database TimesTen. Do not use OS level backup tools files to back up a database as a result "backup" will not be be consistent and probably won't be usable.

Q3. I assume that tools such as Data Pump, Exim etc do not work with TimesTen?

A3: Exact, however, TimesTen has its own set of tools that offer many opportunities.

Q4. TimesTen usable as Data Source for Oracle BI Server (i.e. OBIEE) or, in the alternative to hold the repository BI?

A4: Yes, TimesTen is supported as a data source for OBIEE. Actually TimesTen is one of the key technologies in OBIEE battery designed BI Exalytics system. It is not currently supported to store the repository of BI in TimesTen.

Q5. Are the available DML and DDL Sql, basic commands to be used with TimesTen?

A5: Yes, although there are differences in the syntax and features supported by TImesTen compared to Oracle DB. But TimesTen supports most of the usual SQL.

You can find to put much more detail on TimesTen by browsing the presentations, whitepapers and documents, available here:

http://www.Oracle.com/technetwork/database/database-technologies/TimesTen/Overview/index.html

Chris

Tags: Database

Similar Questions

  • Can someone tell me how to make some simple changes to touch Adobe?

    I just got Adobe touch and have problems to do some simple tasks to my images.

    Normally, I use Adobe elements on my desk. I want to just do the following with touch:

    resize images

    Crop images

    Brighten images

    Save to JPEG

    These tasks are very easy when using the elements, but seem difficult using the key. During the clearing-up of an image in the elements it is very easy and doesn't invole sex.

    im hoping someone can tell me the simplest and easiest way to do these things with key

    Thank you

    scooters1958

    Entire image resizing:

    & (ampersand or "More" icon; 2nd icon from the upper right) > Image size. Set the width and height in pixels. (Use an online calculator to find inches if you are not familiar with conversions.)

    Resizing just one layer:

    Select and target a layer > press the resize icon (looks like a cross with arrows at the ends; 5th icon from the upper right)

    Crop of image:

    & > Crop. Use the "link" icon (it looks like two links in the chain) to limit the proportions. You will notice that it works in the same way about how to resize a layer works.

    Clarify:

    Adjustment icon (looks like a couple of horizontal cursors; 4th starting at the top right icon) > choose from a host of effects here, which can lead to the same result: levels, brightness/contrast or curves.

    Save as JPEG:

    Back in the user interface for project selection (or UI) > tap the export (with an arrow pointing to a square outside; 5th icon from the upper right) > choose how you want to export: download creative cloud, save to Gallery (Android) or Camera Roll (iOS), or share > select your projects. (Don't forget to browse their first > tap OK.) They should then be exported as a result.

  • Please help with some simple AS2

    Hello

    I have a puzzle that I adapted in AS2. It is perfect for my needs, with one exception. It has a 'Start' button that erases the image of the puzzle, so you can start to assemble. I don't need the 'Start' button and am currently placing the script from the 'Start' button in the timeline, so that the picture of the completed puzzle is automatically cleared, ready to start assembling the four parts. The code original source from headache and Tunis is located here:

    http://www.ActionScript.org/resources/articles/13/1/jigsaw-puzzle/Page1.html

    This is the script that is currently on the button:

    We (Release)

    {

    for (i = 1; i < = n; i ++)

    {

    ["p" + i] this.joined_mc ._visible = false;

    }

    }

    and the button is inside a clip on the main stage.

    Please can someone help me on this point - would be really grateful!

    Thank you

    Ed.

    If it's a simple button (not a movieclip button) and attach the button containing the chronology:

    for (i = 1; i<>

    {

    ["P" + i] this.joined_mc ._visible = false;

    }

  • FindChangeByList Script, some GREP queries do not work

    I adjusted the queries on 'FindChangeList.txt' to my needs. There are towing GREP queries that will not work with the script but works perfectly well with the Interface of search/replace. I have no explanation for this strange behavior. Can anyone help?

    These are the two queries:

    grep {findWhat: "\A\s+"} {"changeTo: ' ' '} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeword:false} storystart: CONTROL all white space.

    grep {findWhat: "\s+\Z"} {"changeTo: ' ' '} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeword:false} storyend: CONTROL all white space.

    Thank you very much.

    grep {findWhat: "\A\s+"} {"changeTo: ' ' '} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeword:false}

    It is the version of JavaScript, you need to double the backslashes if string Analyzer JavaScript eat.  In other words: {findWhat: '\\A\\s+'}.

    Because this completely destroyed the readability of regexp, I would use rather {findWhat: / \A\s + / .source}

    but I understand why it is not popular.

  • Optimization of simple queries

    Hello

    I use Oracle 10 g r2.

    I have this simple query that seems to take too long to execute:
    DECLARE
         nb_mesures INTEGER;
         min_day DATE;
         max_day DATE;
    BEGIN
         SELECT
              COUNT(meas_id),
              MIN(meas_day),
              MAX(meas_day)
         INTO
              nb_mesures,
              min_day,
              max_day
         FROM
              geodetic_measurements gm 
              INNER JOIN
              operation_measurements om 
              ON gm.meas_id = om.ogm_meas_id 
         WHERE ogm_op_id = 0;
         htp.p(nb_mesures||' measurements from '||min_day||' to '||max_day);
    END;
    -Tables (about 11,000 records for the 'Operations' table) and 800,000 for the other 2:
    "Operation_measurements" is the table that is the link between the other 2 (get the 2 keys).
    SQL> DESCRIBE OPERATIONS
    
    Nom                  NULL     Type
    -------------------- -------- ------------
    OP_ID                NOT NULL NUMBER(7)
    OP_PARENT_OP_ID               NUMBER(7)
    OP_RESPONSIBLE       NOT NULL VARCHAR2(10)
    OP_DESCRIPT                   VARCHAR2(80)
    OP_VEDA_NAME         NOT NULL VARCHAR2(10)
    OP_BEGIN             NOT NULL DATE
    OP_END                        DATE
    OP_INSERT_DATE                DATE
    OP_LAST_UPDATE                DATE
    OP_INSERT_BY                  VARCHAR2(50)
    OP_UPDATE_BY                  VARCHAR2(50)
    
    SQL> DESCRIBE OPERATION_MEASUREMENTS
    
    Nom                  NULL     Type
    -------------------- -------- ------------
    OGM_MEAS_ID          NOT NULL NUMBER(7)
    OGM_OP_ID            NOT NULL NUMBER(6)
    OGM_INSERT_DATE               DATE
    OGM_LAST_UPDATE               DATE
    OGM_INSERT_BY                 VARCHAR2(50)
    OGM_UPDATE_BY                 VARCHAR2(50)
    
    SQL> DESCRIBE GEODETIC_MEASUREMENTS
    
    Nom                  NULL     Type
    -------------------- -------- ------------
    MEAS_ID              NOT NULL NUMBER(7)
    MEAS_TYPE            NOT NULL VARCHAR2(2)
    MEAS_TEAM            NOT NULL VARCHAR2(10)
    MEAS_DAY             NOT NULL DATE
    MEAS_OBJ_ID          NOT NULL NUMBER(6)
    MEAS_STATUS                   VARCHAR2(1)
    MEAS_COMMENT                  VARCHAR2(150)
    MEAS_DIRECTION                VARCHAR2(1)
    MEAS_DIST_MODE                VARCHAR2(2)
    MEAS_SPAT_ID         NOT NULL NUMBER(7)
    MEAS_INST_ID                  NUMBER(7)
    MEAS_DECALAGE                 NUMBER(8,5)
    MEAS_INST_HEIGHT              NUMBER(8,5)
    MEAS_READING         NOT NULL NUMBER(11,5)
    MEAS_CORRECT_READING          NUMBER(11,5)
    MEAS_HUMID_TEMP               NUMBER(4,1)
    MEAS_DRY_TEMP                 NUMBER(4,1)
    MEAS_PRESSURE                 NUMBER(4)
    MEAS_HUMIDITY                 NUMBER(2)
    MEAS_CONSTANT                 NUMBER(8,5)
    MEAS_ROLE                     VARCHAR2(1)
    MEAS_INSERT_DATE              DATE
    MEAS_LAST_UPDATE              DATE
    MEAS_INSERT_BY                VARCHAR2(50)
    MEAS_UPDATE_BY                VARCHAR2(50)
    MEAS_TILT_MODE                VARCHAR2(4000) 
    -Explain the plan (I'm not familiar with the plans explain... command):
    --------------------------------------------------------------------------------------------------------
    | Id  | Operation                     | Name                   | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------------------------------------
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT              |                        |     1 |    19 |   256  (10)| 00:00:02 |
    |   1 |  SORT AGGREGATE               |                        |     1 |    19 |            |          |
    |   2 |   NESTED LOOPS                |                        |    75 |  1425 |   256  (10)| 00:00:02 |
    |*  3 |    TABLE ACCESS FULL          | OPERATION_MEASUREMENTS |    75 |   600 |    90  (27)| 00:00:01 |
    |   4 |    TABLE ACCESS BY INDEX ROWID| GEODETIC_MEASUREMENTS  |     1 |    11 |     3   (0)| 00:00:01 |
    |*  5 |     INDEX UNIQUE SCAN         | MEAS_PK_2              |     1 |       |     2  (50)| 00:00:01 |
    --------------------------------------------------------------------------------------------------------
    How to optimize this query?

    Thank you.

    Yann.

    Looks like you are missing a FK-index on the table in the Middle, for FK goes to OPERATIONS.

    Currently this:

    WHERE ogm_op_id = 0;
    

    Is calculated by a followed by a filter operation full table scan. Assuming that OP_ID is pretty selective, an index on OGM_OP_ID might do the trick here.

  • Question about joining and separating some simple traces

    Hello, I have a vector image of a logo and here to recreate the 'e' appearing in the image here without the missing gap, where a picture point used to be.  I'm fairly inexperienced in Illustrator and seeks advice on the best way to associate this zone in the most simple way and smoother appearance possible.

    Further, since I will use this to get an effect of masking in Flash, I would like to know how I can separate the areas of intersection on the left side of the "e", so it appears as a worm - like single line/swoosh.

    Thanks for any advice.

    -Courtney

    Picture 1.png

    Courtney,

    Assuming that there is no question pending of the copyright, you can:

    (1) cut each of the anchors away with the scissors tool.

    (2) join each part of the path by dragging on the Anchor Points to attach with the direct Selection tool and CTRL / Cmd + J, now you straght join parts with corner at both ends Points;

    (3) ClickDrag every Coner Point with the tool convert point of anchor (the pen tool launcher) to get the right curves, it may take a few tries until you get them right.

    You can cut the tail where it joins the back of the e with the scissors tool. (you can repeat 2) and 3) If you want to join the pieces with curves.

    Always work on a copy when you destroy work.

  • some hibernate queries does not not in Weblogic10.3

    Hello
    My application uses Hibernate and got recently migrated from Tomcat to Weblogic 10.3.
    in Weblogic after the deployment of the application, for the links I get hibernate query exception, these were perfectly fine with Tomcat.
    Please find below the exception and classes

    ProductLine.Hbm.xml
    < hibernate-mapping >

    < name = "com.test.example.model.product.ProductLine class" table = 'sq_product_line"lazy ="false">"
    < name id = column "productLineId" = "product_line_id" type = "string" / >

    < property name = column 'businessUnit"="business_unit_id"/ >

    < / class >...

    < / hibernate-mapping >



    Java call is (ProductLine.java)
    public static {list getAllSorted()
    A session = Persistence.getSession ();
    List pList;
    Query query = session.createQuery ("from ProductLine" + "ORDER BY productLineId ASC");
    pList = query.list ();
    return the pList;
    }

    The exception is:
    org.hibernate.exception.SQLGrammarException: could not execute the query
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    at org.hibernate.loader.Loader.doList(Loader.java:2223)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
    at org.hibernate.loader.Loader.list(Loader.java:2099)
    at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:912)
    at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
    at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
    at com.test.example.model.product.ProductLine.getAllSorted(ProductLine.java:41)
    line 41 is query.list)

    ………………….
    Caused by: java.sql.SQLException: ORA-00904: "PRODUCTLINEID": invalid identifier

    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)


    I tried different options as shown below:
    (1) added < container-descriptor >
    < prefer-web-inf-classes > true < / prefer-web-inf-classes >
    < / container-descriptor >
    (2) added < prefer-application-packages >
    < package name > antlr-*. * < / package-name >
    < package name > org.apache.xerces. * < / package-name >
    < / prefer-application-packages > in weblogic application. XML

    None of the above worked.

    Can someone please help me solve this problem.

    Thank you
    Jayashree

    You can try the following query

    Query query = session.createQuery("select p from ProductLine p ORDER BY p.productLineId ASC");
    

    rather than use simply "ProductLine".... ».

  • Simple queries OPA

    (a) I am very new to the OPA. Have a few questions.

    (1) what is an interview?
    (2) what is Web determinations?

    Can someone provide me with the link to documentation on the basics of the OPA.

    Hello

    (1) short, an interview is really all of the questions that will be asked to reach a conclusion. OPA uses Web determinations to run his interviews (see answer to the next question). An interview using a series of screens in question to collect information. Each question screen that appears during an interview contains a question or series of questions. You enter the answers to these questions so that the determinations of the Web can reach a conclusion for the specific purpose of the evaluation (interview). For example, the purpose of an assessment may be to see if a person is eligible for a specific service. The interview contains questions which must be answered in order to determine the eligibility of a person. Once all questions are answered, determinations Web will inform you if the person is eligible.

    (2) determinations of web is an online interface which presents the questions that are asked during an interview, as well as the summary of the results. The determinations of the Web port is configured during the installation of the OPA. Determinations Web URL looks like this: http://localhost: 8080/web-determinations. The 8080 is the port.

    Regarding the documentation to better explain these topics, I suggest you help OPM Pages. OPM is downloadable from the site of delivery of Oracle (edelivery.oracle.com) and its help pages explain a lot about everything and have images, which I think will really help you to better understand.

    Christine

  • The Web Services API documentation?

    Hello


    I was looking for documentation about OLM web services, because I need to perform some simple queries from external software. You could point me please in the right direction?


    Thank you...

    Hello

    See "Oracle Learning Management Implementation Guide", Page 11-54 - publicly callable API process to OLM Business. See also «the the integration of Oracle repository User Guide»

    Application Guide Oracle Learning Management & Oracle integration repository User Guide
    http://www.Oracle.com/technetwork/documentation/applications-089559.html

    Oracle integration repository
    http://IREP.Oracle.com/index.html

    Thank you
    Hussein

  • Group ADF opening too many sessions of database JDBC Thin Client.

    Hi all

    I have several panels of the ADF, which allows the user to run some simple queries against a database of Oracle is using the view objects ADF and ADF view links and ADF application module.
    Each ADF Panel as I mentioned contains several queries view link and links in the form of Jbuttons to other ADF signs other ADF links running.
    Run Control Panel of the ADF as described here opens up to 21 sessions of data showing as "JDBC Thin Client" when I look at their place of session$ v.
    Why I find myself with a lot of databases of sessions.
    Why didn't he just uses one or two sessions of database to run all of these links to view? It seems that it opens a session of data base for each of these links to view.

    How can I change this destructive behavior? I have that one to see one or two sessions of database for the whole ADF matter how ADF display the links it contains.
    Your suggestions are most appreciated.

    Thank you.
    Bobby has.

    Why so many AMs? Can not put all the your under a single AM?
    Each AM you will use will open a connection to the DB.

  • Panel of the ADF does not variable defined in the ADF view object.

    I created a group of ADF, which allows the user to run some simple queries against a database of Oracle is using the view objects ADF and ADF view links and ADF application module.
    One of them asks detailed information of research on a database object (Table, view, or other) to dba_objects. SQL uses a parameter (: P_OBJ_NAME) which has a default value of "departments". If I run the ADF application by herself outside the ADF panel module, everything works fine, he invites me to provide a value for the parameter: P_OBJ_NAME.
    As I said the Panel contains various links to view ADF which one who must prompt the user to provide a value for: P_OBJ_NAME. When I run the Panel he does not invite me to: P_OBJ_NAME, it only uses the defined default value "departments".
    I hope that I have described my problem for everyone to understand. Of course, the question is how to make the Group ADF to prompt the user to provide a value for the parameter: P_OBJ_NAME, my waiting has been the sql of the view object and request module, both are designed to enter a value for this parameter, then the Panel should do just that, but it's not.

    Expert you would be most appreciated.
    Thank you.
    Bobby has.

    Published by: Babak Akbari, August 13, 2009 08:34

    Published by: Babak Akbari, August 13, 2009 11:12

    The instigation of a parameter is a feature that we have built in the ADF Tester - is not a default behavior that you get in your application when you have just placed a VO on your page.
    To get something like that spend the operations under the VO node in the data control palette and drag the operation "Run with parameters" to your page to drop it as a form of parameter.
    This will give your user name a place to complete the setting, then press a button to run the query.

  • How to open a XML for the update.

    Hello

    I created a form of the ADF, which is made of ADF panels which allow the user to run some simple queries against an Oracle database is way to display links ADF and ADF application module. I would like to add another Panel to the main form that would allow the user to open an existing XML file (.xml) and modify it at will. How can I do this?
    Please notify.

    Thank you.
    Bobby.

    You can find the code for a simple Java class than reading/writing to a file here:
    http://www.javapractices.com/topic/TopicAction.do?ID=42

    Here's a demo of what you can do once you have the java class that read/write on the file (note that I modified the original class to accept the string rather than as objects of file settings).

    http://blogs.Oracle.com/Shay/2009/07/java_class_data_control_and_ad.html

  • Question Basic setting, ask questions about the buffer cache

    Database: Oracle 10g
    Host: Sun Solaris, 16 CPU server



    I look at the behavior of some simple queries that I start the tuning of our data warehouse.

    Using SQL * more and AUTOTRACE, I ran this query two times in a row

    SELECT *.
    OF PROCEDURE_FACT
    WHERE PROC_FACT_ID BETWEEN 100000 AND 200000

    He finds the index on PROC_FACT_ID and conducted an analysis of the range of indexes to access the data in the table by rowid. The first time, that it ran, there are about 600 physical block reads as data in the table were not in the buffer cache. The second time, he had 0 physical block reads, because they were all in the cache. All this was expected behavior.

    So I ran this query twice now,

    SELECT DATA_SOURCE_CD, COUNT (*)
    OF PROCEDURE_FACT
    DATA_SOURCE_CD GROUP

    As expected, he made a full table scan, because there is no index on DATA_SOURCE_CD and then chopped the results to find the different DATA_SOURCE_CD values. The first run had these results

    compatible gets 190496
    physical reads 169696

    The second run had these results

    compatible gets 190496
    physical reads 170248


    NOT what I expected. I would have thought that the second run would find many of the blocks already in the cache of the pads of the first execution, so that the number of physical reads would drop significantly.

    Any help to understand this would be greatly appreciated.

    And is there something that can be done to keep the table PROCEDURE_FACT (the central table of our star schema) "pinned" in the buffer cache?

    Thanks in advance.

    -chris Curzon

    Christopher Curzon wrote:
    Your comment about the buffer cache used for smaller objects that benefit is something that I asked about a good deal. It sounds as if tuning the buffer cache will have little impact on queries that scan of entire tables.

    Chris,

    If you can afford it and you think it is a reasonable approach with regard to the remaining segments that are supposed to benefit the buffer cache, you can always consider your segment of table with 'CACHE' that will change the behavior on the full of a broad sector table scan (Oracle treats small and large segments differently during the execution of table scans complete regarding the cache of) marking stamps, you can override this treatment by using the CACHE. NOCACHE keyword) or move your table of facts to a DUNGEON hen establishing a (ALTER SYSTEM SET DB_KEEP_CACHE_SIZE = ), modify the segments (ALTER TABLE... STORAGE (USER_TABLES KEEP)) accordingly and perform a full table scan to load blocks in the cache of the DUNGEON.

    Note that the disadvantage of the approach of the KEEP pool is that you have less memory available for the default buffer cache (unless you add more memory on your system). When an object to mark as being cached is always is in competition with other objects in the cache buffers by default, so it could still be aged out (the same applies to the pool of DUNGEON, if the segment is too large or too many segments are allocated age blocks out as well).

    So my question: How can I get for a parallel analysis on queries that use a table scan complete such as what I posted in my previous email? It is a question of the provision of the "parallel" indicator, or is it an init.ora parameter I should try?

    You can use a PARALLEL hint in your statement:

    SELECT /*+ PARALLEL(PROCEDURE_FACT) */ DATA_SOURCE_CD, COUNT(*)
    FROM PROCEDURE_FACT
    GROUP BY DATA_SOURCE_CD;
    

    or you could mark an object as PARALLEL in the dictionary:

    ALTER MATERIALIZED VIEW PROCEDURE_FACT PARALLEL;
    

    Note that since you have 16 processors (or 16 cores that resemble Oracle 32? Check the CPU_COUNT setting) the default parallel degree would be usually 2 times 16 = 32, which means that Oracle generates at least 32 parallel slaves for a parallel operation (it could be another set of 32 slaves if the operation for example include a GROUP BY operation) If you do not use the PARALLEL_ADAPTIVE_MULTI_USER parameter (which allows to reduce the parallelism if several parallel operations running concurrently).

    I recommend to choose a lesser degree parallel to your default value of 32 because usually you gain much by such a degree, then you can get the same performance when you use lower a setting like this:

    SELECT /*+ PARALLEL(PROCEDURE_FACT, 4) */ DATA_SOURCE_CD, COUNT(*)
    FROM PROCEDURE_FACT
    GROUP BY DATA_SOURCE_CD;
    

    The same could be applied to the paralleling of the object:

    ALTER MATERIALIZED VIEW PROCEDURE_FACT PARALLEL 4;
    

    Note When defining the object of many operations in PARALLEL will be parallelisee (DML even can be run in parallel, if you enable dml parallel, which has some special restrictions), so I recommend to use it with caution and begin with an explicit indication in those statements where you know that it will be useful to do.

    Also check that your PARALLEL_MAX_SERVERS is high enough when you use parallel operations, which should be the case in your version of Oracle.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • Simple Variables example

    Hello

    I have user rights to an Oracle 10 g server, but am not a DBA, so I did not all editing permissions that I know. I just use the database for queries.

    I want to understand how to use PL/SQL to enter variables but am struggling to find some simple examples of this?

    I use Oradev Studio to perform my SQL and we tried the following:

    declare
    type of v_dealname global_sf.deal.deal_legal_name %;
    Start
    Select
    deal_legal_name in v_dealname
    Of
    global_sf. Deal
    where
    deal_id = '87148804';
    dbms_output.put_line (' name: ' | v_dealname);
    end;

    which I hacked together here;
    http://www.DBA-Oracle.com/t_pl_sql_plsql_select_into_clause.htm

    Strangely the OraDev output section gives me this encouraging message "SQL6.sql: Execute succeeded [0.095 s]" but it gives me a printed copy of the variable I was hoping. Is there a 'window' or equivalent that I did not find? The query has actually worked?

    I also tried to put a variable in the where clause in another arbitrary query:

    declare
    v_dealid INTEGER (8);
    Start
    v_dealid: = 87148804;
    Select
    creation_dt
    deal_legal_name
    actual_maturity_dt
    Of
    global_sf. Deal
    where
    deal_id
    =
    v_dealid;
    end;

    Here I get the error 'an INTO clause in this SELECT statement.

    Could someone advise me please on some of those issues of basic variables? Ideally a breast of simple examples, I could use it don't require admin rights would be fantastic. It would be much appreciated.

    Thank you

    Jon

    Published by: berlinhammer on August 24, 2010 04:48

    I use Oradev Studio to perform my SQL

    Probably the post on the forum to DBMS_OUTPUT problem contributes to operate in OraDeveloper the dbms_output.

  • Simple counter in seconds

    Hello

    In my code, I have a while loop which may or may not take more than x seconds to run. Once the while loop has worked for x seconds I would to provide a series of commands. Therefore, I need a kind of counter. Number of cycles will help me with that? If so, how? If this is not the case, how can I create a counter for this simple task? Thank you.

    Alfredo

    Yes, the number of cycles can be used for this, and other mechanisms. For example, you can use the time to get the seconds. Here are some simple examples:

Maybe you are looking for