Oracle pivot problems

< h3 > basically what I need is to generate a report that convert values to single column into multiple columns and aggregate data.
All the RptDate that are < current year are lump together. Status = 0 are the filter out.

My database is Oracle 9i release 9.2.0.1.0
This is the info table
ID      RptDate       Status  
JMN    01-Mar-08      1
JMN    01-Mar-08      1
JMN    05-Jun-09      1
JMN    14-Dec-10      1
JMN    23-Jan-11      0
JMN    26-Feb-11      1
BEN    01-Mei-08      1
BEN    01-Jul-08      1
BEN    22-Nov-09      1
BEN    23-Nov-09      1
BEN    14-Dec-10      1
BEN    23-Jan-11      1
BEN    29-Jan-11      1
BEN    26-Feb-11      1
BEN    21-Mar-11      1
KEN    07-Mei-07      1
KEN    04-Jan-08      1
KEN    28-Feb-08      1
KEN    22-Nov-09      1
KEN    23-Nov-09      1
KEN    14-Dec-10      1
KEN    23-Jan-11      1
KEN    29-Jan-11      1
KEN    26-Feb-11      1
KEN    21-Mar-11      0
KEN    01-Apr-11      1


Expected output
ID      PreviousYear  Jan  Feb  Mar  Apr  Mei  Jun  Jul  Aug  Sep  Oct  Nov  Dec  Total
JMN     4               0    1   0    0    0   0    0    0     0     0    0    0      5
BEN     5               2    1   1    0    0   0    0    0     0     0    0    0      9
KEN     6               2    1   0    1    0   0    0    0     0     0    0    0     10

This solution can give you the right EXIT, take a look...

SELECT ID,
Sum (case when RptDate<= trunc(sysdate,'yyyy')-1="" then="" 1="" else="" 0="" end)="" previousyear="">
sum (case when trunc (RptDate, 'month') = trunc(sysdate,'yyyy') then 1 else 0 end) jan.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 1) then 1 else 0 end) Feb.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 2) then 1 else 0 end) mar.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 3) then 1 else 0 end) Apr.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 4) then 1 else 0 end) may,
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 5) then 1 else 0 end) June,.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 6) then 1 else 0 end) Jul.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 7) then 1 else 0 end) aug.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 8) then 1 else 0 end) Ms.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 9) then 1 else 0 end) oct.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 10) then 1 else 0 end) nov.
sum (case when trunc (RptDate, 'month') = add_months (trunc (sysdate, 'yyyy'), 11) then 1 else 0 end) dec.
sum (case
When the status not ('Void', 'Pending', 'Error') then 1
otherwise 0 end) Total
Info
When the status not ('Void', 'Pending', 'Error')
Group by ID
order by 2

Concerning
Rahul MRC

Tags: Database

Similar Questions

  • Installing Oracle - RPM problem

    Hello guys,.

    When I install my oracle database, I have some problems with RPM, for example:


    Package: libgcc - 3.4.6 (i386)...

    But,

    [root@server]# rpm - Uvh libgcc - 3.4.6 - 3.i386.rpm

    WARNING: libgcc - 3.4.6 - 3.i386.rpm: header V3 DSA/SHA1 Signature, key ID 443e1821: NOKEY

    Preparing...                ########################################### [100%]

    package libgcc - 4.4.7 - 16.el6.x86_64 (which is newer than libgcc - 3.4.6 - 3.i386) is already installed

    the package libgcc - 4.4.7 - 16.el6.i686 (which is newer than libgcc - 3.4.6 - 3.i386) is already installed

    [root@server]#

    [root@server]# rpm - qa |] grep libgcc

    4.4.7 - libgcc - 16.el6.i686

    4.4.7 - libgcc - 16.el6.x86_64

    [root@server]# uname-r

    3.8.13 - 68.3.4.el6uek.x86_64

    [root@server]# uname - a

    3.8.13 - 68.3.4.el6uek.x86_64 Linux #2 SMP server kills Jul 14 15:03:36 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux

    Have problem if I don't know all the prerequisites above equals method?

    I did this, my installation:

    The Oracle database installation was successful... but don't know how I said above... I have the problem in the future because I ignored?

    3059845 wrote:

    SQL > select * from v version $;

    BANNER

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

    Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for Linux: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    This version is NOT certified on RHEL 6

  • Oracle ADF: Problem with display with component LOV selectManyChoice/CheckBox values

    Hi all

    I use Oracle JDeveloper 11.1.1.7. I want to use the selectManyChoice component in my requirement. When you use the same thing, I have observed that selectMany components as a component of selectManyChoice/selectManyCheckBox are not filling LOV VO values in drop-down list. Instead it displays the value VO destination attribute values.

    For example,.

    I have EmpVO and DeptVO. Now, I want to join LOV "DepartmentId" attribute of EmpVO using DeptVO as sourceVO. After this operation, if I drag and attribute DepartmentId of Drop EmpVO as consisting of selectOneChoice , when running, we will be able to see DepartmentName from drop down list I chose DepartmentName as attribute and departmentId as ListAttribute in LOV.

    To create the SelectManyChoice link, if I drag and drop the EmpVO instance to the page, we can find SelectManyChoice option under the "Multiple Sélection" option. As soon as the SelectManyChoice option, we will be able to see the window of EditListingBinding as shown below where we are asked to map baseAttr and displayattribute for this component. This means that he has not considered LOV which we show you. To view Department name in the drop-down list, we can select departmentVO instance 'Source database', while in the Base and display attribute we can map the DepartmentId and departmentName. By doing this, we can achieve my schenario for display in the menu dropdown. The problem is that this element of will will bind with DepartmentVOIterator and no matter what I select component selectMany, I take and wherever I need to set the value on the target attribute programmatically.

    ListBinding.png

    Is there a declarative way to display the selectMany component that uses LOV as a source in the view of value in drop-down list? Please suggest.

    Thanks in advance.

    Praveen.

    Hi William,.

    Thank you for your response. one who shared is related to the display of values such as MultiSelect component. But my requirement is to have combination of InputText and SelectManyChoice so that the user will have two entry key in place. So whenever we enter the code value in InputText, the corresponding value in the SelectManyChoice box should be checked [some]. This combination both annd InputText SelectManyChoice I need to create a component.

    I created the component as described below.

    I created DeclarativeComponent which is having an InputText and component SelectManyChoice. Component of SelectManyChoice I'm filling ViewObject value programmatically. On the selection of any value in the drop-down list SelectManyChoice value changeListener I get selected value and conversion Stringg and affecting InputText to show the selected value. Also in reverse ie. case, whenever I enter the correct value in the InputText, valueChangeEvent, I am taking and convert these values to the list and setting the value property of SelectManyChoice in order to make the selection.

    And to make this component as a single component, I used contentStyle = ' width: 0px "to hide the box InputText of SelectManyChoice as shown below.

    Thank you, regards,

    Praveen.

  • On the use of PIVOT problem

    Hi all.

    I use of Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 and the following query:

    SELECT *.

    Of

    (SELECT code_combination_id, period_name, nvl (sum (begin_balance_dr + period_net_dr - begin_balance_cr - period_net_cr), 0))

    OF gl_balances

    ) PIVOT (nvl (sum (gb.begin_balance_dr + gb.period_net_dr - gb.begin_balance_cr - gb.period_net_cr), 0))

    I always get the error "Missing key word".

    Can someone please give me a hand on this?

    Octavio

    Hello

    because your statement is not complete, missing the PIVOT 'FOR' clause.

    that is to say:

    Select * from)

    Select times_purchased, state_code

    customers t

    )

    Pivot

    (

    Count (state_code)

    for state_code ("NY", "CT", "NJ", "FL", "MO")

    )

    order of times_purchased

    Please check: Re: 4. How can I convert rows to columns?

    and 11 g - pivot.html

    For a few examples.

    Kind regards.

    Alberto

  • Oracle performance problem

    Oracle: 11.2 EE.
    OS: RHEL 5.x
    Storage: VNX SAN.

    We have tried to identify a problem of performance for our ETL process before going live.
    We use external tables with data extraction and loading pump.

    On server 1 (Dual Core QA)
    Our etl process runs 15% faster.

    On the server 2 (Quad Core Production)

    Our test includes the creation of a database in production and by running the etl process. We moved the Lun containing production data files for testing and using the same init.ora files, we have brought to the top of the database on server1. We find that server1 performs much faster than on server2.
    We even passed on the HBA from one server to another, to eliminate any problem of connectivity with the material. Even with that, we are at a time where server2 running slower than server 1.

    We have reduced to the following in the AWR report (do not know how to post the report as a whole). It seems that the readings are much faster on the server 1 Server 2.

    IOStat summary function
    Server 1
    Function    NameReads: Data   Reqs per sec   Data per sec   Writes: Data   Reqs per sec   Data per sec   Waits: Count   Avg Tm(ms)
    Data Pump   1.1T              759.83         162.614        118.6G         236.56         17.1264        7063.3K        0.10
    
    
    Server 2
    Function    NameReads: Data   Reqs per sec   Data per sec   Writes: Data   Reqs per sec   Data per sec   Waits: Count   Avg Tm(ms)
    Data Pump   1.1T              475.83         101/852        118.6G         141.41         10.7269        7065.1K        0.38
    I know there is not a lot of information here, but I hope someone might have experienced this in the past and has a solution.
    Any answer will appreciated.

    Thank you
    Div.

    Published by: div on 4 February 2013 07:25

    Hello

    I saw cela previously, where, from a CPU more fast speed of the slowest to the although it causes many, unique process threaded to operate more slowly. You do not have as much energy for this simple to use threaded process. Even if she was not maxing out the CPU before, it could be present on this single thread.

    It is not really the answer but if everyhting else is the same and I mean identical, then it must be the only change and, therefore, the culprit. In this case, you will need to parallelise the process.

    See you soon,.
    SoC

  • Oracle connection problem: cannot open the library

    Hello

    I'm using VS2010, Timesten 112241 and ODAC 1120320 on Windows 7. When I try to access database of TT using SQL Developer, for example, it works perfectly, but everything I try to access it from my application, he throws ORA-29158: could not open except for the library. I read a few threads on the forum about this problem, tried to copy the tnsnames.ora, sqlnet.ora and on the record of the new client after installing the ODP, set TNS_ADMIN to locations of files .ora, tns alias, the value, but nothing seems to work. Which library it refers? What Miss me?

    Here is the output of ttVersion:
    TimesTen release 11.2.2.4.1 (64 bit NT) (tt1122_64:53396) 2012-10 - 30 T 06: 32:14Z
    Forum admin: nikola.bajic
    Home Directory Forum: C:\TimesTen\TT1122~1\
    Accessible world
    Demon base directory: C:\TimesTen\TT1122~1\srv\info
    PL/SQL active.

    Here is the output of ttStatus:
    Daemon pid 1872 port 53396 instance tt1122_64
    TimesTen PID 1960 server started on port 53397
    C:\tt_temp\TT_ItemCache data store
    There is no connection to the data store
    Replication strategy: manual
    Agent caching policy: manual
    PL/SQL active.
    C:\users\nikola~1.baj\appdata\roaming\timesten\demoda~1\TT_tt1122_64 data store
    There is no connection to the data store
    Replication strategy: manual
    Agent caching policy: manual
    PL/SQL active.
    C:\users\nikola~1.baj\appdata\roaming\timesten\demoda~1\sampledb_112 data store

    There is no connection to the data store
    Replication strategy: manual
    Agent caching policy: manual
    PL/SQL active.
    Accessible by any group
    End of report

    Here the tnsnames.ora entry:
    tns_item_cache = (DESCRIPTION =
    (CONNECT_DATA =
    (SERVICE_NAME = TT_ItemCache)
    (Server = timesten_client)))

    Here's the code for the app:
    connStr = "user Id =;". Data Source = tns_item_cache;
    GetConnection (connStr);

    private OracleConnection GetConnection (String connStr)
    {
    Con OracleConnection = new OracleConnection (connStr);

    con. Open();
    return con;
    }

    Best regards
    Nikola

    Hello Nikola,

    Could you please put the code you are using, and the exact error you get. In addition, please check the env variables, as CLASSPATH, LD_LIBRARY_PATH and etc. here (java.sql.SQLException: problems with the native/lack of loading methods library )

    Also "verify that the entry in the tnsnames.ora file is associated with a DSN TimesTen or service_name in the simple connection string is set to a DSN TimesTen." (http://download.oracle.com/otn_hosted_doc/timesten/odpnet/readme.htm)

    Best regards
    Gena

  • Oracle 11g problem reports is displayed

    Hello I'm having some trouble using the:

    Run_report_object

    the main problem is that there is no provision when there essay on my request, the server work and no error, even the internet explore seems to begin to try to open the report in a new window I guess but then it stops and nothing happens without error any info nothing.

    This is the code I use on key elements of printing

    DECLARE
    rep_id REPORT_OBJECT;
    rep_result VARCHAR2 (80);
    BEGIN
    (rep_id-: = find_report_object('C:\Oracle\Middleware\Oracle_FRHome1\forms\L00000001.rdf');
    rep_id: = find_report_object ('jt001');


    -SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_OTHER);

    rep_result: = RUN_REPORT_OBJECT (rep_id);

    END;

    I hope someone can give me a hand

    Thanks in advance

    Thanks for the appreciation,

    For setting window, you must add this url value: -.
    paramform = yes

    for example
    Web.show_document ('http://appserver:8889/reports/rwservlet?report=E:\reportname.rdf&destype=cache&desformat=pdf*¶mform=yes*&userid=scott/tiger@hoststring', '_blank');

    Hope this can solve your problem.

    Oracle-911

  • Oracle 11g: problem with disable primary key

    Hello
    I have this problem:

    I performed "EXECUTE IMMEDIATE"ALTER TABLE your table of KEY PRIMARY DISABLE";"

    This operation returns an error
    but when I did 'insert into table... ". »... Oracle returned ora-0001.

    The operations are in the same stored procedure, so in the same session.

    Database: Oracle 11.2.0.2

    How is that possible?
    All solutions?

    Thanks in advance.

    Best regards.
    Alessandro Zenoni

    Try to add 'DROP INDEX' to your disable command.

    not tested

    alter table xy disable primary key drop index
    
  • Configuration of the database link Oracle/MySQL problems

    I watched everything I could find on the mistakes I see but I am still at a loss. Basically, I created a link between a DB oracle database (11.2.0.2.0, 64-bit) running on linux and a mysql DB (5.0.45 64) also under linux. The version of the mysql ODBC driver is 5.1.8 - 1 (64-bit) and the version of unixODBC is 2.2.11 - 7.1 (also 64 bit). isql can connect and provides correct results. Connected to the oracle DB, I can run 'select count (*)' on any table of mysql DB. I can also choose tables varchar columns, but the displayed values are strangely short and incomplete. Select all the columns in several lines for most of the tables gives me error ORA-28528 feared. Select specific lines, however, seems to work. Here's a typical session:
    SQL> select count(*) from "status"@mysql;
    
      COUNT(*)
    ----------
         30
    
    SQL> select "name" from "status"@mysql;
    
    name
    --------------------------------------------------------------------------------
    approved
    cancelled
    complet
    configu
    deleted
    Drafti
    editing
    finalized
    hibernat
    initialized
    manual
    
    name
    --------------------------------------------------------------------------------
    not used
    original
    plating
    Prepari
    
    
    
    
    
    
    
    
    name
    --------------------------------------------------------------------------------
    
    
    
    
    
    
    
    
    
    30 rows selected.
    
    SQL> select * from "status"@mysql;
    ERROR:
    ORA-28528: Heterogeneous Services datatype conversion error
    ORA-02063: preceding line from MYSQL
    
    
    
    no rows selected
    
    SQL> select * from "status"@mysql where "name" like 'Drafting%';
    
     status_id
    ----------
    name
    --------------------------------------------------------------------------------
    progress_rank
    -------------
         12
    Drafting Work Order
          1000
    
    
    SQL>
    My files of different settings look like this:

    /etc/ODBC.ini:
    [lims]
    driver=MySQL
    database=lims
    server=dbserv
    port=3306
    user=root
    password=*******
    charset=latin1
    /etc/odbcinst.ini:
    [MySQL]
    Description          = ODBC for Mysql
    Driver64          = /usr/lib64/libmyodbc5.so
    FileUsage          = 1
    $ORACLE_HOME/hs/admin/initLIMS.ora:
    HS_FDS_CONNECT_INFO = LIMS
    HS_FDS_TRACE_LEVEL = 255
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
    HS_NLS_NCHAR=UCS2
    
    #
    # ODBC specific environment variables
    #
    set ODBCINI=/etc/odbc.ini
    set SQL_MODE='ANSI_QUOTES'
    [url http://pastie.org/private/mx2whunhvkknurmcc02qa] Here's a trace for the sql file
    select * from "status"@mysql where "status_id" < 3
    Any help would be greatly appreciated!

    Published by: helgew on August 24, 2011 11:55

    as number of columns is affected, it could be a problem with your odbc manager/odbc is not not fully 64 - bit compatible driver. You don't have compile the ODBC driver manager / ODBC driver manually or did you use a precompiled version?

    Most of the rivers pre-compiled follow the 32-bit ODBC standard rather than 64-bit. To support full 64-bit, you must ensure
    CFLAGS = ""-DBUILD_REAL_64_BIT_MODE ""
    and
    CFLAGS = ""-DBUILD_REAL_64_BIT_MODE ""
    are used to compile a 64-bit driver.

    As an alternative, you can specify in your file init Bridge: HS_FDS_SQLLEN_INTERPRETATION = 32
    forcing 64-bit DG4ODBC not to use the standard 64-bit ODBC and follow the 32-bit declarations.

  • Oracle 10g - problem with "DELETE from TABLE WHERE ID in (1,2,3)" (use cfqueryparam)

    Hello, everyone.

    I have problems with executing a DELETE statement on an Oracle 10 g server.

    DELETE 
    FROM tableA
    WHERE ID in (1,2,3)
    

    If there is only a single ID for the IN clause, it works.  But if more than one ID is provided, I get an error message "SQL command" not correctly completed.  Here's the query as CF:

    DELETE 
    FROM TRAINING
    WHERE userID = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#trim(form.userID)#">
         AND TRAINING_ID in <cfqueryparam value="#form.trainingIDs#" cfsqltype="CF_SQL_INTEGER" list="yes">
    

    Someone at - it works with Oracle that can help me with this?  I'm a developer experienced in MS - SQL; Oracle is new to me.

    Thank you

    ^_^

    So much worse... a colleague just told me I should always use parentheses around the values in the IN clause.

  • Oracle export problem

    Oracle AIX 5.2 9.2

    While performing a full export, during the process, I get the error message below.

    exp userid = system / * file=/dump/dump.dmp log=/dump/dump.log full = y buffer = 5000000

    EXP-00002: error in writing to the export file
    EXP-00002: error writing export fileerror closing export file /dump/dump.dmp
    EXP-00000: export completed unsuccessfully

    Now, I tried to export this unique table and this works, if the table is not the issue. So I thought it might be the formidable problem of gig 2 Unix, but then I realized the step export fails, the dump file is already at 63,88 Go.
    I can also confirm that I am not short of space where I'm export dumping and I also check the ulimit Unix which is

    Time (seconds) unlimited
    Leader (Blocks) unlimited
    Data (KBytes) unlimited
    Stack (KBytes) 32768
    Memory (KBytes) unlimited
    Coredump (Blocks) 2097151
    Nofiles (descriptors) 2000

    Any ideas?

    Hello
    If the export fails when the file is 63,88 GB, there maybe a 64 GB limit.
    I could not find any information related to the export file size limit, but it may be related to operating system or Oracle (data files are limited to 4 M * block_size, i.e. 64GB if the block_size is 16K).

    Try exporting to more than one file:

    exp userid=system/ file=/dump/dump1.dmp,/dump/dump2.dmp,/dump/dump3.dmp filesize=60G log=/dump/dump.log full=y buffer=5000000
    

    Liron Amitzi
    Consultant senior s/n
    http://www.dbsnaps.com

  • Oracle Dbca problem

    Hello
    I tried for the first time in RHEL4 Oracle, I have installed oracle and tried to create the database using DBCA, he arrived at the last stage, as the HTML for confirmation and then it showed not any option like create the database or Ok to create the database, how can I know?
    can someone please give me a solution for my problem.

    Thanks in advance,
    shusr

    You are not able to see the ok button or the ok button is pressed and nothing I s happening? If you are not able to see, it is a problem of resolution. You must reduce the dbca a little window to see the ok button or change the resolution of the screen.

    HTH
    Aman...

  • Oracle password problem

    I inherrited an application that uses a 8.1.7 database that is running on an old server which is soon to be decommissioned. So, I tried to that move on a supported version of Oracle running on a server more up-to-date. The problem I have is that the app uses MicroSoft IIS to connect to a schema with a password is encoded in a dll, despite trying various password crackers available via the web site of Pete Finnigans hard, I couldn't crack this. I could go from 8.1.7 to 10g release 1, if it wasn't for the fact that I don't have 10g release 1 and it can no longer be download from OTN, nor do I have the installation for 8.1.7 kit. This leaves me with legacy import and export, could someone please correct me if my interpretation is correct, in that: -.

    1. to perform any kind of import to the destination schema must exist first

    2 import into an existing schema does not reset the password of this schema to what it was in the source database.

    Hello

    I guess you can do at least one upgrade manual directly to 10 gr 2.
    And Yes change user identified by values is not mobile version of across.

    Concerning
    Anurag

  • Oracle customer problem...

    Hi all
    I have two systems. Both are runnig Windows 2003 SP2. I installed Oracle 11g on a single system and Oracle 11g Client on another system. Now on the Oracle Client machine when I give a name of user and password, say, scott/tiger it gives the error: -.

    SQL * more: version 11.1.0.7.0 - Production on Tue May 19 17:56:48 2009

    Copyright (c) 1982, 2008, Oracle. All rights reserved.

    Enter the user name: System
    Enter the password:
    ERROR:
    ORA-12560: TNS:protocol adapter error

    How to solve this problem? Help, please.

    Thank you.

    Hello

    Seems that you do not have a valid entry in your tnsnames.ora to the oracle database. Save a copy and all delete and add followign entered in your tnsnames.ora on the client machine.

    # replace db server either db hostname or ip address> and make sure you can ping db server from client machine.
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = dedicated)
          (SERVICE_NAME = orcl)
        )
      )
    
    On client:
    C:> sqlplus username/password@ORCL
    

    Concerning

  • Backup.bat Oracle Xe problem

    Hello.

    I'm a complete novice when it comes to the Oracle.
    I have Oracle Xe installed on my laptop.
    This laptop is running wth Microsoft XP Professional SP2 applied.
    It works, I connected with the SQLdeveloper tool.
    I've created tables, users, views, synonyms and inserted data.
    The SQL world turns very well now.

    But I am a novice and a fool.
    I would like to back up my data when I goof, I can restore.
    I tried to back up two different ways.
    Neither have worked.
    An answer for either would be great.
    An answer for both would be fantastic!

    I can connect to the database through sqlplus than any of several users:
    the user of the system that was installed during the installation,
    the human resources user that was installed during the installation,
    the northwind user that I place.

    (#1).
    I looked online and found information on rman.
    I can start rman from the command prompt.
    But I can't the ' connect target / "(according to the instructions online)
    I get an "ORA-01031: insufficient privileges" error.
    I tried "target xe", "target", "target system@xe" and so on.
    I created a user with all privileges checked.
    It gives me the same error.
    Help!

    (#2).
    There is a backup.bat file included with Oracle Xe.
    I ran that and got errors saying that "Settings\Temp\backup_rmanlog.sql" was not planned.
    I assumed it was because of the value of TEMP.
    I copied backup.bat to dmhup.bat and made changes to it.
    I have saved the current value of TEMP and TMP.
    I put the TEMP and TMP to C:\Temp
    I made that C:\Temp exist and that it can write.
    I ran my script.
    Now, he waits for a while, and then returns the following error message:
    ==================== ERROR =============================
    The backup of the database failed.
    Unknown log mode: SP2-0640:.
    Log file is SP2-0640:.
    ==================== ERROR =============================
    Press a key to continue...

    When I look in the log in C:\Temp files all say "SP2-0640: not connected.
    All .sql files begin with ' connect / as sysdba;
    It seems to me that this connection is the problem.
    Help!

    It seems that two backups are facing problems of connection.
    I looked at the Xe admin page and I have no sysdba user.
    There is a sys user, but I am reluctant to change the password.
    The database works now, and I don't want to break!

    I know I am doing something stupid here.
    Can you tell me what it is please?

    Thank you

    Dan Hunter

    Hmm,
    Is your user member of the local administrator group account? If this isn't the case, then you can not connect without specifying a password - you will need to connect like this:

    sqlplus SYS/password@XE AS SYSDBA
    

    RMAN, you will need to do it like this:

    rman target SYS/password@XE
    

    If you have the right keys in your registry, you need not specify ORACLE_SID. Those would be under HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE. But I advise you to install a client appropriate Oracle, in this way, you can configure the service names to connect to all your instances Oracle server, the remote and.

    As for not being able to install Linux - there is no need to install it as your main operating system. You're better off installing XE (prefer the universal version) on a virtual machine (I use VirtualBox on my laptop, it's free and works very well) with Centos 5.3 (free clone of RHEL). Then simply install SQL Developer on your Windows operating system (no need to install a client, JDBC does the trick) and you have everything you need. RMAN is accessible from the command line on Linux guest - ensure just a Bug in the script of /etc/init.d/oracle-xe - proposed solution How to correctly set the user oracle Linux environment in order to get a better experience out of it.
    I do not have access to a virtual machine that is running a Windows XP client right now - we'll see what results you get out of these operating instructions.
    Believe me, by installing and running Oracle are ALWAYS painful for a novice. And a few versions back it was harder.
    Kind regards

    Georger

    user10739288 wrote:
    It is on the Windows XP Professional 64 bit computer.

    Microsoft Windows [Version 5.2.3790]
    Copyright (C) 1985-2003 Microsoft Corp.

    C:\Documents and Settings\dan > sqlplus / AS SYSDBA

    SQL * more: Release 10.2.0.1.0 - Production on Sun Mar 1 03:35:59 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    ERROR:
    ORA-01031: insufficient privileges

    Enter the user name: System
    Enter the password:

    Connected to:


    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

    SQL > exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - production
    ction

    As you can see, it says not sufficient privileges and asks me to enter a user name and password.
    I get the same thing on a Windows XP Professional 32 bit or install a Windows XP Home Edition.
    While I was able to connect with the sqlplus command, RMAN will not connect.
    I did not find RMAN to connect using > ANY< userid="" or="" password="">
    In fact, just flat RMAN tells me to bend!

    I noticed your comment about the ORACLE_SID.
    I see that in my environment variables.
    That's what I see on the XP Pro 64 machine:

    ALLUSERSPROFILE = C:\Documents and Settings\All Users
    APPDATA = C:\Documents and Settings\dan\Application Data
    CLASSPATH=C:\product\10.1.3.1\OracleAS_1\MOBILE\Sdk\bin\OLITE40. CONTAINER;
    CUSTOMERNAME = Console
    CommonProgramFiles = c: files
    CommonProgramFiles (x 86) = C:\Program Files x86\Common files
    COMPUTERNAME = SERVER64
    ComSpec=C:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK = NO
    HOMEDRIVE = C:
    HOMEPATH = \Documents and Settings\dan
    LOGONSERVER = \\SERVER64
    NUMBER_OF_PROCESSORS = 2
    OS = Windows_NT
    Path=C:\product\10.1.3.1\OracleAS_1\jdk\bin; C:\product\10.1.3.1\OracleAS_1\ant\b
    in; C:\oraclexe\app\oracle\product\10.2.0\server\bin; C:\Windows\System32; C:\WINDO
    TSX C:\WINDOWS\System32\Wbem; C:\product\10.1.3.1\OracleAS_1\MOBILE\sdk\bin
    PATHEXT = .COM; EXE;. BEATS;. CMD;. VBS;. VBE;. JS;. JSE;. WSF;. WSH
    PROCESSOR_ARCHITECTURE = AMD64
    PROCESSOR_IDENTIFIER = AMD64 family 15 model 107 Stepping 1 AuthenticAMD
    PROCESSOR_LEVEL = 15
    PROCESSOR_REVISION = 6b 01
    ProgramFiles = c: Program Files
    ProgramFiles (x 86) = c: Program Files x 86
    PROMPT = $P$ G
    SESSION = Console
    SystemDrive = C:
    SystemRoot = C:\WINDOWS
    TEMP = C:\DOCUME~1\dan\LOCALS~1\Temp
    TMP = C:\DOCUME~1\dan\LOCALS~1\Temp
    USERDOMAIN = SERVER64
    USERNAME = dan
    USERPROFILE = C:\Documents and Settings\dan
    windir = C:\WINDOWS

    I'll try setting ORACLE_SID XE and see what makes a difference.
    No, error messages, and results.
    Tried it on XP Pro 32, same results machine.

    I worked on AIX, UNIX, and Linux in the past.
    I know some differences in the environments.
    Tell me if it works on Linux isn't really the same as saying that it works under XP.

    You have a virtual of Windows XP machine?
    You can try installing Oracle XE here?
    RMAN or sqlplus connect by using the same commands?
    Or are there additional things that need to be done?

    My machine Windows XP 64 is not Windows XP 64 of my choice.
    I need the following Oracle's SOA and in need of SUSE, Redhat Enterprise Edition or Windows.
    Since I did not "have a copy of SUSE, who was going out.
    It wouldn't install in Fedora 7, 8, 9 or 10.
    I've tried, believe me, I tried!
    I tried to install Redhat Enterprise, but he simply didn't like my hardware.
    I've never seen electronic hair balls of this color, size or consistency in my life.
    I found myself in the land of Microsoft.
    And the SOA installation failed with an error with a bad version of PSAPI.dll being installed.

    Does > NOT< been="" a="" pain="" free="">
    Having said that, during this process I learned a lot about Windows and Oracle.

    I am installing OracleXEuniv.exe version 10.2.1015
    Downloaded directly from Oracle's web site.

    I want to thank you for your help.

Maybe you are looking for

  • What is the correct way to "downgrade" from Vista to XP on Satellite Pro A120?

    I want to downgrade to XP. I have a Satellite Pro A120 PSAC1E. How should I proceed? TIA.

  • Issue of SimCardInfo

    Hi everyone, this question has a similarity with the following after http://supportforums.BlackBerry.com/T5/Cascades-development/how-to-get-HardwareInfo-in-QML/m-p/21905... I want to view/get a read on IMSI. The problem is that using a similar method

  • Installed gta4 used social Rockstar to activate now windows live says invalid product key

    Well, I had problems to install gta4. I used a live windows update program and then I could play the game on windows live and social rockstar has been removed. Since I activated on rockstar social live windows it says its an invalid product key. Any

  • Closed caption confusion... is it just me?

    HelloI always use PremPro CC (2014) with 10 Windows.  The 2015 version crashes just perpetually! Then, looked in the manual and can not seem to find a simple and clear answer a 8 year old child can understand. Question: How can I create files *. CSC

  • will not read the photo files

    When I download Canon 70 d to my adobe lightroom photos will not read anything else than .jpg files. Others are shown but foggy. When I try to import in lightroom, I get the impossible to read the message. Never happened before. Where am I wrong?