Oracle General Queries

Hi Experts,
1. Which are background required to startup Oracle Database?
2. Suppose i lost my pfile/spfile ; Now how can i take the backup of the database?
Thanx in Advance
Mani

1. Which are background required to startup Oracle Database?OS must be running. Oracle binaries must be installed. Env variables must be set as well.
2. Suppose i lost my pfile/spfile ; Now how can i take the backup of the database?OS copy file from pfile/spfile backup.
Nicolas.

Similar Messages

  • Outbound interfaces from oracle general ledger

    Hi,
    I have a requirement of exporting :
    • Stores transactions
    • Invoice transactions
    • Payment transactions
    • Bank reconciliation transactions
    • Goods Received Not invoiced (GRNI) Accrual transactions
    Please let me know if there are any stadard interfaces or open API from oracle general ledger for exporting these transactions.
    Any links/pointers in this regard would be helpful.
    Thanks & Regards,
    Parag Gurjar

    Hi,
    I believe what you have heard is false, you can work with multiple periods open at the same time. But as a best practice its better if you could close the relevant month period on due dates so as to avoid transaction being entered to previous open periods...  Because the accounts will go on a mess if transaction rolls in from future periods.
    Hope this helps,
    Regards,

  • Oracle General Ledger Functional

    Hi Team,
    Am new to Oracle General Ledger Functional.
    Even am new am working GL Support.
    I need some functional Guidance related Rates .
    Any one can guide me
    Regards,
    Sampath

    Hi AsifMuhammad),
    I want to send concurrent program output as a email attachment.
    Can you guide me how can we send.
    I have tried the following methods
    1.Shell script by using mailx/UUencode (but there are security Reasons  at my client side not to Use these commands)
    2.When am trying with Pl/sql its not picking/reading the attachment by passing request id as input.
    3.I have set the profile options (FND SMTP ),After setting these profiles am able to send as a body of mail but not as attachment.
    1.Please guide me how to send email attachment of completed request by passing request _id
    2.How can send attachment after completion it self.
    Regards,
    Sampath

  • Workflow general queries

    In workflow defenition how a version can be defined ( I can see 0000 when i create a new workflow, how this can be changed or updated with new changes and how can i get 0001 number over there)
    In workflow when i create a new task i can see many options for release status. Can u explain me the functionality of each status.
    ie : Released
    Implemented
    Modeled
    Obselete

    Hello,
    Please try be more specific with your topic and post one thread per question. This is for your benefit because people who know the answer are more likely to answer a question titled "What's the difference in release statuses?" than "workflow general queries"
    Regarding your second question, this should explain it quite nicely:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4ab0e453d11d189430000e829fbbd/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4ab0e453d11d189430000e829fbbd/frameset.htm</a>
    Cheers,
    Mike

  • How to use I18N in Oracle's queries

    Hi guys. I want to know how I can internationalize the date conversion in my SQL queries, stored procs, and triggers (from here known as queries) in Oracle. Currently, what we do to convert chars to dates is "to_date('mm/dd/yyyy', dateParam)'. This have been working fine until recently when we decided to internationalize our app that the "dateParam" we passed to the queries does not necessarily follow the "mm/dd/yyyy" format anymore.
    Any help would be greatly appreciated. Thanks.

    You should be using PreparedStatements and bind variables and then there would be no problem.
    If not your database only supports a single time format.
    So your java code must convert to that format first before calling the SQL. You can use SimpleDateFormat and specify the TimeZone when you call it.

  • Oracle internal queries taking more CPU time

    Hi,
    Following are queries taking more CPU time. I got this from awr report. Can anyone tell me why these queries are running? Is it a oracle enterprise manager query? should I use
    emctl stop dbconsole to stop this?
    DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN := FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
    SELECT COUNT(*) FROM MGMT_METRIC_DEPENDENCY_DETAILS DEP, MGMT_SEVERITY SEV WHERE DEP.TARGET_GUID = :B5 AND DEP.METRIC_GUID = :B4 AND DEP.KEY_VALUE = :B3 AND DEP.EDEP_TARGET_GUID = SEV.TARGET_GUID AND DEP.EDEP_METRIC_GUID = SEV.METRIC_GUID AND DEP.DEP_KEY_VALUE = SEV.KEY_VALUE AND SEV.COLLECTION_TIMESTAMP BETWEEN :B2 AND :B1
    SELECT CURRENT_STATUS FROM MGMT_CURRENT_AVAILABILITY WHERE TARGET_GUID = :B1
    Thanks in advance
    With Regards
    boobathi.P

    Hi,
    maybe this document will help if you are using 10g:
    SQL run by SYSMAN consuming a lot of resources on OMS with 800+ targets [ID 330383.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=330383.1
    there you'll find Cause and Solution too:
    SYSMAN Job and Queries are Taking Up High CPU (DB Console) [ID 1288301.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1288301.1
    For databases above version 11.1 there are paches available.
    Best,
    Michael T. Z.

  • Problems with bound parameters in oracle text queries

    Executing the following query I get strange effects depending on the value I pass for the search string :str ...
    With value "Med" everything works fine and I get the results I have expected.
    But when passing "Tech" as value to the query, the result is ORA-20000 and DRG-50901 (Oracle Text error, syntax error in parser)
    select * from (
    SELECT /*+ FIRST_ROWS */ *
    FROM SERVICE_CATEGORY sCat
    WHERE (
    CONTAINS ( sCat.SERVICE_CATEGORY_C , '<QUERY><textquery grammar="CONTEXT"><progression><seq>{'
    || :str || '}</seq><seq>'
    || :str || '%</seq><seq>%'
    || :str || '%</seq><seq>fuzzy({'
    || :str || '},1,100,WEIGHT)</seq></progression></textquery></QUERY>', 1 ) <> 0 AND
    sCat.SERVICE_TYPE_C IS NULL AND sCat.SERVICE_SPECIALTY_C IS NULL )
    ORDER BY score(1) DESC ) where rownum <= 20
    When passing the search string "Tech" directly to the query without using bound paramters, everthing works fine:
    select * from (
    SELECT /*+ FIRST_ROWS */ *
    FROM SERVICE_CATEGORY sCat
    WHERE (
    CONTAINS ( sCat.SERVICE_CATEGORY_C , '<QUERY><textquery grammar="CONTEXT"><progression><seq>{'
    || 'Tech' || '}</seq><seq>'
    || 'Tech' || '%</seq><seq>%'
    || 'Tech' || '%</seq><seq>fuzzy({'
    || 'Tech' || '},1,100,WEIGHT)</seq></progression></textquery></QUERY>', 1 ) <> 0 AND
    sCat.SERVICE_TYPE_C IS NULL AND sCat.SERVICE_SPECIALTY_C IS NULL )
    ORDER BY score(1) DESC ) where rownum <= 20
    Also, when I use >0 instead of <>0 everthing works fine:
    select * from (
    SELECT /*+ FIRST_ROWS */ *
    FROM SERVICE_CATEGORY sCat
    WHERE (
    CONTAINS ( sCat.SERVICE_CATEGORY_C , '<QUERY><textquery grammar="CONTEXT"><progression><seq>{'
    || 'Tech' || '}</seq><seq>'
    || 'Tech' || '%</seq><seq>%'
    || 'Tech' || '%</seq><seq>fuzzy({'
    || 'Tech' || '},1,100,WEIGHT)</seq></progression></textquery></QUERY>', 1 ) > 0 AND
    sCat.SERVICE_TYPE_C IS NULL AND sCat.SERVICE_SPECIALTY_C IS NULL )
    ORDER BY score(1) DESC ) where rownum <= 20
    Does anybody have an explanation for the strange effect when using a bound parameter in combination with <> 0?

    I don't know why your query using bind variables is giving you a problem but use of literal inside CONTAINS second argument is encouraged anyway over bind variables starting with 10gR2 (unless you are confident enough about the cost and selectivity of your queries to the extent that you can use SQL hint instead). The literal replacement feature introduced in release 9i caused a hard-parse if the literal value changed but starting with 10gR2, at least for CONTAINS, a hard-parse is avoided even if the literal value has changed as long as the cost and selectivity is similar to an existing cursor in the library cache (e.g. within 10%).
    Faisal

  • General queries regarding explain plan and query

    Hello Oracle buddies,
    I have few badly formed queries with plenty of nested loops, merge join cartesian , plenty of sorting and in the query so many sub queries and all.. The cost of the queries are high like anything.
    some even has 130Crore of cost .
    When I got the chance to look into those quries I test them in Non Prod systems and which almost have 90-95% similar data as it was refresh by PROD few weeks back.
    I found few queries are having the same explain plan but cost is less like anything. for example 5000 or 6000.
    When I check for the possibilities of wrong statistics I found they just collect with default setting...
    In Non prod I saw only the auto stat job is ran and most of the tables are having the stats which are of last analyzed on the day of refresh.
    Now what could be so differentiating factor that drives a queries' cost lesser than Prod systems, when the data is almost same. Also if prod ssystem is gather by only gather_schema_stat('SCHEMA_NAME') then it should carry the same stat in non prod while refreshing. I know ppl do not gather stat on test only auto job is running ...
    I need to have clear prove before I can have a clear understanding..
    Please help me to know what factors could be differentiating?
    -Regards,
    J_DBA_Sourav

    j_DBA_sourav wrote:
    Hello Jonathan,
    Thanks for the reply. The team refreshed it, by expdp/impdp method where by default statistics are included. In that case?
    Is this problem probable to happen due to statistics only or anything else is also responsible. Even the explain plan is same.
    Please through some light on it.
    Auto job is on as I stated earlier but in test systems most of the tables are showing refreshed date as last_analyzed
    -Regards
    JDS
    Anything that puts the stats out of sync with each other may be sufficient to cause problems. Any queries that depend on sysdate may cause a problem.
    As a simple check:  select table_name, last_analyzed from user_tables on the two systems, with some order by clause (e.g. table_name), and see how many tables were analysed at different times - anything on either system after the exp/imp could be part of your problem.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    Now on Twitter: @jloracle

  • Access 2003 to Oracle Migration Queries

    Hi Experts,
    I have taken up a project to migrate Access 2003 application to Oracle 9i.The Forms and Reports will continue to run in Access 2003 with Oracle 9i database. I decide to use Oracle Migration workbench for the migration purpose.What I think is the back-end i.e. database and queries will be automatically migrated to Oracle 9i but I'm not sure about the front end application.
    Do I need to change front end application to point to database in Oracle 9i or OMW will do that itself.I am also confused with lots of queries that reside in current Access database. I presume these queries will be converted to Oracle procedures/views without any manual intervention but will the front-end application also be modified automatically to point to those stored procedures/views. Otherwise an extensive code change will be required which may result in huge cost.
    Currently the Access application is not using any ODBC DSN as it gets connected to the database automatically. Should the database connection be changed to use DSN prior to Migration?
    One more thing, the application is using single-level linked table. Will the linked table get automatically converted and connected or I need to do anything?
    Could anyone help me in this issue by giving some ideas so I can manage the job efficiently and make proper planning before plunging into the real work.
    Thanks & Regards
    S C

    The Migration Workbench will modify the Access mdb file as part of the migration if you request it, to create the necessary link tables to oracle, it will use an ODBC DSN to do this. This is explained in our documentation. This should be transparent.
    However for complex application, you often have a tuning exercise, to ensure that the jet engine does the "right" thing, and there changes are required, e.g. a two way join, you would want that to happen on the server and not done on the client. This would be same tuning exercise, if the back end was SQL Server.
    In the latest release of the Access plugin, we did a better job migrating queries to views, but you need to plug this into your code.
    Yes, the exporter should extract the information about the linked table, assuming the link is valid at the time of extraction.
    Donal

  • Monitoring Oracle SQL queries in VBA

    I currently use VBA with Excel to generate reports based on data within an Oracle 9 database. The amount of data is very large and the reports can take a long time to process. I have added status bar progress indicators for the majority of the report processing tasks to inform the user of what is going on.
    The problem is that I need to be able to monitor the progress of the main SQL queries since they take upwards of a few minutes to run each (mainly because I need to rank and order data). I currently use code similar to that shown below to query the database from VBA.
    Sub simpleVersion()
    Dim username As String
    Dim password As String
    Dim sid As String
    Dim objSession As Object
    Dim objdatabase As Object
    Dim OraDynaset As Object
    Dim strSQL As String
    username = "user"
    password = "pass"
    sid = "database"
    ' connect to database
    Set objSession = CreateObject("OracleInProcServer.XOraSession")
    Set objdatabase = objSession.OpenDatabase(sid, username & "/" & password, 0&)
    strSQL = "select latitude, longitude, otherdata from scatter where otherdata > 50 order by latitude, longitude"
    ' This command takes a long time to execute when doing ranks/order bys
    Set OraDynaset = objdatabase.DBCreateDynaset(strSQL, 0&)
    Do While OraDynaset.EOF = False
    'Process the data and put on a spreadsheet
    'Status bar messages can be used here without problems
    OraDynaset.MoveNext
    Loop
    Set OraDynaset = Nothing
    Set objSession = Nothing
    objdatabase.Close
    Set objdatabase = Nothing
    End Sub
    When the DBCreateDynaset command is executed VBA waits until the dynaset data is retrieved from oracle. I would like to be able to do something similar to the pseudo code below.
    Execute SQL to create dynaset
    Do while still obtaining dynaset
    Check v$session_longops - Indicate time taken / remaining on status bar
    Loop
    I have found that if you execute a large query without any tasks that require the whole dataset before they can begin (ranks, ordering etc) the dynaset is created almost instantly and excel does not freeze up.
    With non dynaset operations such as inserts it is possible to run the query in non blocking mode. I am able to monitor the progress of the query and indicate it to the user.
    Dim myStatement As OraSqlStmt
    Set myStatement = objdatabase.CreateSql(strSQL, ORASQL_NONBLK)
    Do While myStatement.NonBlockingState = ORASQL_STILL_EXECUTING
    DoEvents
    Select Case intSpinCount
    Case 1
    Application.StatusBar = "Please Wait. Calculating data /"
    Case 2
    Application.StatusBar = "Please Wait. Calculating data -"
    Case 3
    Application.StatusBar = "Please Wait. Calculating data \"
    Case 4
    Application.StatusBar = "Please Wait. Calculating data |"
    intSpinCount = 0
    End Select
    Application.Wait TimeSerial(Hour(Now()), Minute(Now()), Second(Now()) + 1)
    intSpinCount = intSpinCount + 1
    Loop
    Non blocking mode is explained here. However dynasets are not supported.
    http://download-west.oracle.com/docs/cd/A91202_01/901_doc/win.901/a90173/o4o00022.htm
    I have tried using pl/sql to insert the data requested into a temporary table and then the normal select statement to get the data back out. However since the data stored in a table is not ordered it isn’t much help to me since I still have to do the order by command.
    Anyone got any ideas?
    All help is much appreciated.

    Dear taktang
    I'm a newbie. I'd be grateful if you would tell me where to find "oracle-base"
    thanks
    mik3

  • Example Oracle Spatial Queries for NAVTEQ Data

    Hi,
    I recently installed NAVTEQ RDF data into an Oracle database. I am new to Oracle Spatial and am looking for some example queries using the NAVTEQ data in the Oracle database.
    For example, suppose I have a point (latitude,longitude). What are the queries for each of these:
    1) find roads or faces within 5 miles of that point;
    2) find roads or faces that cover that point
    Thanks!
    Bowden

    Hi,
    There are a lot of of ways to license the data (county, state, country), there are different flavors (mapping, geocoding, and routing), and there are different licensing options for the Oracle platform (user based and cpu/core based). I cannot think of a use case that would approach the cost below.
    Feel free to drop me an email (daniel dot abugov at navteq dot com) and we can discuss.
    Dan Abugov
    NAVTEQ Enterprise Business Development and Consulting

  • Oracle WebDB Queries

    Hi
    While using WebDB I have some queries.Can anyone help.The queries are :
    1. Is there any way to know the IP address of the user (not in the listener host) from where the URL is executed. The table wwv_activity_log, wwv_activity_log1$, wwv_activity_log, wwv_activity_log2$ stores the IP address of the listener.
    2. How to refer the form variable. For example if it is required to execute a function passing some variable after a form is executed then how to do it. Again if depending on the return value it is required to show a menu or dynamic page then how it can be done.
    3. How to configure another Web server (IIS) for WebDB. Though in the installation manual of WebDB it is given that it is possible by setting WebDB CGI executable we are unable to do so by following the steps in the manual.
    4. Is there any possibility to have another level of logical security apart from oracles. That means if we want to restrict an user from accessing a component and the oracle user name and password is hard coded in the DAD then how to do it.
    5. How the validation works here. Is field level validation depending on some data from the database is possible.
    6. Where to write PL/SQL scripts which deals with the database columns.
    Platform Specifications
    Server
    OS : Digital UNIX V4.0D
    Database : Oracle8i EE (Release 8.1.5)
    WebDB : 2.1.0.9.3
    Listener
    OS : Windows NT 4.0
    Listener : Oracle WebDB Listener version 2.1.0.9.5
    Network S/W : Net8 Release 8.0.4
    Browser
    Browser : IE 5.0
    null

    Hi Sanjiv,
    You should post these questions to the Oracle Workflow forum. This is the Oracle BPEL Process Manager forum.
    Best,
    Edwin

  • ORACLE SQL QUERIES  FOR SAP

    Hello All,
    Can any body give me the total SQL queries which will be used in SAP.
    Thanks&Regards,
    Praveen Kondabala

    Hi,
    If you do need that kind of information, then it is easier that you do not use any.
    > Like Oracle DBA
    you only need to read the documentation about
    1) brtools
    2) dbacockpit (I assume you have a fairly recent SAP version)
    you can find the information about this two "things" in
    SAP on Oracle

  • Oracle General Ledger Certification

    I want to take the certification for 1z0-516, Oracle EBS R12.1 General Ledger Essentials. Has anyone taken this and passed before?
    How many questions do we need to answer in how much time in the real time exam?
    Any help appreciated.
    Thanks

    You can get all this information on our website at certification.oracle.com.
    Regards,
    Brandye Barrington

  • Sample SQL code ( Oracle Spatial queries)

    Hi All,
    Can anyone tell me where can I get sample spatial queries.
    Please tell me the urls for spatial queries.
    Thank you
    Anju

    Hi All,
    Can anyone tell me where can I get sample spatial queries.
    Please tell me the urls for spatial queries.
    Thank you
    AnjuHow about the spatial users guide which is available on
    http://technet.oracle.com/doc/inter.815/a67295/toc.htm
    It also contains example statements.
    There is also a
    spatial_users_guide_817.pdf available
    Gerjan

Maybe you are looking for