ORA-01092 and problem with include ORACLE :)

Hello
I question why I have error ORA-01092 wne I want to create the database? Files, scripts and P:

CREATE DATABASE ORCL
The USER SYS IDENTIFIED BY pz6r58
The USER IDENTIFIED BY y1tz5p SYSTEM
LOGFILE GROUP 1 ("C:\oracle\product\10.2.0\oradata\orcl\redo01.log") SIZE 100 M,
GROUP 2 ("C:\oracle\product\10.2.0\oradata\orcl\redo02.log") SIZE 100 M
GROUP 3 ("C:\oracle\product\10.2.0\oradata\orcl\redo03.log") SIZE 100M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
MAXINSTANCES 1
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET AL16UTF16
DATAFILE 'C:\oracle\product\10.2.0\oradata\orcl\system01.dbf' SIZE 325M REUSE
LOCAL MANAGEMENT MEASURE
SYSAUX DATAFILE 'C:\oracle\product\10.2.0\oradata\orcl\sysaux01.dbf' SIZE 325M REUSE
TABLESPACE tbs_1 default
TEMPORARY TABLESPACE tempts1 default
TEMPFILE 'C:\oracle\product\10.2.0\oradata\orcl\temp01.dbf '.
RE-USE OF 100 M OF SIZE
UNDO TABLESPACE undotbs
DATAFILE 'C:\oracle\product\10.2.0\oradata\orcl\UNDOTBS1.dbf '.
SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;

PFILE:
ORCL.__db_cache_size = 142606336
ORCL.__java_pool_size = 4194304
ORCL.__large_pool_size = 4194304
ORCL.__shared_pool_size = 130023424
ORCL.__streams_pool_size = 8388608
*.audit_file_dest='CC:\oracle\product\10.2.0\db_1\admin\ORCL\adump'
*.background_dump_dest='C:\oracle\product\10.2.0\db_1\admin\ORCL\bdump'
* full = '10.2.0.1.0'
*.control_files='C:\oracle\product\10.2.0\oradata\orcl\control01.ctl','C:\oracle\product\10.2.0\oradata\orcl\control02.ctl','C:\oracle\product\10.2.0\oradata\orcl\control03.CTL '
*.core_dump_dest='C:\oracle\product\10.2.0\db_1\admin\ORCL\adump'
* .db_block_size = 8192
* .db_domain = "
* .db_file_multiblock_read_count = 16
* .db_name = "orcl".
*.db_recovery_file_dest='C:\oracle\product\10.2.0\flash_recovery_area'
* .db_recovery_file_dest_size = 2147483648
*. Dispatchers ='(Protocol=TCP) (SERVICE = orclXDB)"
* .job_queue_processes = 10
* .open_cursors = 300
* .pga_aggregate_target = 96468992
* runoff = 150
* .remote_login_passwordfile = "EXCLUSIVE."
* .resource_manager_plan = "DED".
* .sga_target = 290455552
* .undo_management = "AUTO".
* .undo_tablespace = "UNDOTBS1.
*.user_dump_dest='C:\oracle\product\10.2.0\db_1\admin\ORCL\udump'

Thanks for the reply.
Andrew

Remove "DEFAULT TABLESPACE Tbs_1" of your script, create your database and create this tablespace later. Make default later if necessary.

Nicolas.

Tags: Database

Similar Questions

  • Problem with the Oracle text markup

    Hello

    I have a problem with the Oracle text markup.

    I am looking for keywords in a text which is composed by a question and answer.
    Here is the structure of my text:
    & lt; div class = 'question' & gt;
    & lt; a & gt; the title of my question & lt; /a & gt;
    & lt; div class = "reply & gt;
    content of response
    & lt; / div & gt;
    & lt; / div & gt;

    It is possible to search those keywords in the question or answer only. For this, I use the stored procedure:

    {call CTX_DOC. MARKUP)
    index_name = >?
    textkey = >?
    text_Query = >?
    restab = >?
    query_id = >?
    startTag = >?
    (EndTag = >?)}

    _with these parameters: _

    index_name = < my index >
    textkey = < id for the search text >
    text_Query = < a query containing the keywords >
    restab = < a table SQL to store the marked text >
    query_id = < id >
    startTag = ' < span class =-"highlight\" >. "
    EndTag = "</span >.

    The markup should be done only in the place you want (question, answer, or both).
    The markup is good when I search a keyword throughout the text, in the question or answer only.
    * If I search two key words in the question or answer, the markup is bad *.

    _Example: __
    I am looking for the words "* Internet *" in question only.
    Here's the query passed to the stored procedure:
    + * text_query * = 'service & internet' INPATH (//div[@class = 'question'] / has) +.

    In the question, these words are well marked.
    In response, only the first word is marked.

    * Why the first keyword is also marked in the response while the query specifies a search in question only? *

    The same problem appears when I search for the same keywords in the response only.
    In this case, in the answer, these words are marked as well.
    In the issue, only the first word is marked.

    Thanks for your help

    Edited by: user11088931 Apr 21. 2009 06:17

    Try text_query = (service & internet) INPATH (//div/a)

    Single quotes in a query do nothing. I think that your request has been treated as

    Service & (internet INPATH (//div/a))

  • "Delayed write failed" message keeps appearing to external hard drive (WD passport) and problems with suggest fix kb908673 (register edit).

    I had problems with my WD usb hard drive, where a "delayed write failed" message keeps appearing when the transfer of files to or from it. Among the fixes suggested on the WD support site is a link to kb908673, and this seems to sum up my problem. This fix is included in sp3, I believe, however, the fix indicates that a manual registry editing needs to be done;

    "After you install this hotfix, the following registry subkey is automatically added and configured:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USB\EnSoftRetry

    The registry key is configured with a DWORD value of 1. This value allows the Soft-Retry code path that is used in this hotfix.

    "If you install a later version of the patch (a patch that contains later versions of Usbport.sys and Usbehci.sys), including Windows XP SP3, this registry value not be automatically added and configured. The registry value must be manually added and configured as described above to activate the Soft-Retry code path that is provided in this hotfix. »

    I don't have this registry subkey and have no idea how to do to configure a key to have a DWORD value - I can create as a registry entry DWORD value in this key, but it must be given a name. Should I create a DWORD value called "EnSoftRetry" in the USB, or should I create a DWORD value in the EnSoftRetry key and, if so, what should it be called? Or am I completely misunderstanding something here?

    (1) manage devices

    (2) find each host EHCI USB controller

    3) click on USB EHCI host controller Details of the

    Highlight 4) Device Instance path

    (5) copy "Device Instance path«path information in the Notepad for quick and easy access»»

    (6) open Regedit

    7) click "HKEY_LOCAL_MACHINE."

    8) click on 'SYSTEM '.

    9) click on CurrentControlSet «»

    10) click on 'Enum '.

    11) click on "PCI".

    (12) click on ' * the folder that corresponds to the stage 4 information.

    (13) this is where you should be now: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\------\Device Parameters.

    (14) right click on 'device settings '.

    (15) select "new-> Key".

    16) enter the field of naming the new key 'EnHcSoftRetry '.

    (17) right-click on "EnHcSoftRetry"the ket has created "

    (18) select "new-> DWORD (32-bit value).

    19) enter the field of naming 'DWORD '.

    (20) right click 'DWORD '.

    (21) select 'change '.

    (22) entry in the field value '1' Base of Hex

    (23) close regedit complete process :)

  • What is the problem with my Oracle reports parameter?

    Hello

    We use a PL SQL package that allows the user to select the report you want Oracle and associated parameters.   While the control is passed to Oracle 11 g reports.

    The requirement of one of the reports is to enable more detailed codes be selected by the user and then shown.  The detailed code is an alphanumeric field that can hold between 4 and 6 characters.

    If my data model looks like this

    SELECT student_id

        FROM my_view

       WHERE detail_code IN :p_detail_code;

    and the parameter that I'm passing to Oracle reports looks like this (when I view the source HTML code)

    & p_detail_code =('1001','1002')

    so no record is selected.

    However, if my data model looks like this, I get the records you want:

    SELECT student_id

      FROM my_view

    WHERE detail_code IN ('1001', '1002');

    We have Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production.

    Please tell me what is the problem with my setting.  Thanks a lot for your help.

    This isn't how you can use in. See this example on how to solve it with the digital settings. If your setting is a character, you need to change this.

    In fact, when you simply enter 1,2,3 as an input parameter, you actually create this query:

    Select *.

    from my_table

    where num_column in ("1,2,3")

    Use rather a lexical parameter:

    Select *.

    from my_table

    & p_where

    In the parameter after relaxation shape, build the lexical like this:

    :p_where := 'where num_column in ('||:p_param||')';
    
  • Searchbar broken in v23 and problem with add - js related?

    Since the upgrade to v23, the search bar not working - I can enter search terms, but the menu drop-down appears on my second monitor, and pressing on enter, nothing happens - that is the search for the search bar no longer works, for any search engine installed.

    Also, even if it may seem unrelated question, I use the Devonthink added, in order to capture pages html since firefox directly to Devonthink Pro. After the capture of the page HTML in PAO, I can only convert a searchable PDF.
    Converting page captured from v23, in PAO, all I get is a reflection and a partial screenshot of the visible part of the original HTML page.

    These two functions worked perfectly in v22, but are broken to v23. I have since downgraded in v22, and both functions work as expected, so it is clearly a problem with Firefox v23.

    The only 'fixes' were either downgrade v22, or start with a new profile, v23.
    The search bar worked normally when booting in safemode, v23, but not when all THE modules, themes and extensions have been disabled.

    Whatever changes have been made in v23, required a new profile to 'fix' this problem.

    Again, reinstall all the extensions and try to put the same preferences is a way very frustrating to mitigate this kind of behavior of the software.

    Fortunately, it is often not necessary.

  • iPad2 and problem with the SIM card after update

    even after the 9.3.1 last updated continuously having problems with SIM TIM card network.

    I changed and I tried with another SIM card but the problem remains.

    I did have all those problems with 9.2.1.

    Apple could intervene and solve these problems? Otherwise, I think it's better to make a return to the old 9.2.1.

    Thank you

    Do you see the network? and is it strong enough?

  • Satellite L500 and problems with the Wi - Fi

    Hello people

    I'll just throw my problem there.
    First of all my details and information that can help me to help you!

    Satellite L500 running windows 7 (note: same problems when installing Vista)
    Latest drivers wireless as well as the latest drivers for everything.
    My wireless router is 1 billion active voip 7000 series sound quite good for when I got it about 2 years ago and works well.

    Basically, the problem is that the wireless on my Satellite L500 keeps dropping out. I m not more than 20 meters at most, right now I m 10 m with 1 wall in the way. I tried to make a website, and he says has fallen to either unable to find host connection.

    However other computers laptops in the same room, same place at the same time has no problem at all. Has ever.
    As soon as I'm in the same room as my router, it works again. Sometimes works if I stand right on the opposite wall.

    So basically I m thinking my card wireless in my laptop is defective or simply not good?
    Can u replace the card with another wireless? Maybe the Toshiba ones are just no good? I read so many problems with these cards Toshibas wireless...

    Anyone have any ideas? I ran out of the info you need? I repost he's again in a day or two with the types of wireless devices in every laptop.

    Hello

    For the moment, I doubt that your wireless network card is broken. Before Exchange you it you must also update your BIOS and not only the WLAN card driver. Two updates you need to download it from the Toshiba site:
    http://EU.computers.Toshiba-Europe.com > support & downloads > download drivers

    I had a similar problem with my Toshiba laptop and WIFI connection. The problem was in the WLAN energy saving mode Windows power management. Here, you can also choose a mode for energy saving wireless network card. Turn it off, and then choose a maximum Performance.

  • Disabled the HTTPS option in Hotmail and problems with the Windows Firewall, Microsoft Security Essentials and Windows updates.

    Original title: Windows Live Hotmail only opens a new window links e-mail composition!

    I recently put my Windows Live Hotmail account to my default e-mail client in Internet Explorer 8 on my Windows XP SP3 System. Unfortunately, whenever I click on a link to e-mail on a Web page to open a new message, Hotmail tells me, "Sorry, there seems to be a problem with Hotmail right now", and a new/compose message window does not open. I disabled the HTTPS option in Hotmail, which fixed the problem. However, when I went to do a manual update of Windows, I am nailed with a Trojan horse! Apparently, the Windows Firewall and Microsoft Security Essentials have been affected by turning off HTTPS in Hotmail! It's 2012, and it's terribly disappointing that Microsoft only has not ironed out all the imperfections in these services now. If anyone can give me a solution (in simple terms), I would appreciate it!

    Thank you

    Ryan

    Hi Ryan,

    1. you receive messages or error codes when you access Windows updates?

    2. what happens exactly with the Windows Firewall and Microsoft Security Essentials?

    About the update of Windows, the Windows Firewall and Microsoft Security Essentials issues, you may try to launch the FixIt and see if it helps:

    Method 1:

    Resolve security issues to protect and secure Windows automatically

    The problem with Microsoft Windows Update is not working

    Method 2:

    You can also refer to article and perform a full scan on your computer by using the Microsoft Safety Scanner.

    Microsoft safety scanner

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    On the Windows Live Hotmail account, you can publish your request in instances of Windows Live to get help:

    http://answers.Microsoft.com/en-us/windowslive

  • ENVY14-2090eo: ENVY14-2090eo and problems with synaptics clickpad


    Hi again,

    Well I can inform you that microsoft did not put any new driver for solve this problem with the more recent driver it is ATM. I checked this version of the model touchpad and it is not supported by windows 10.

    But.

    I found this driver from synaptics Web site. I don't know if it works. But this is the last result I know. You can try and download + install and hope it solves the problem. Because I really hope.

    Link: http://drivers.synaptics.com/Synaptics_v19_0_19_1__C__x86-x64__Win10__Signed__MS_Win10_UXUI_PS2_SMbus.zip

    Thank you.

  • DC5800 WIN7 x 64 and problem with restart

    Hello

    I have the problem with DC5800.

    I do the new install of win7 ultimate x 64.

    Now when I try to reboot (restart, not stop), the system is down, check the bios and... black screen.

    System won't start.

    When I shut down the system and start now - everything is ok.

    The system is normal startup.

    I upgraded the bios (from 1.04 to 1.55), all the system updates, read internet half and I have no idea.

    Can someone help me?

    Regards Robert

    Hi Paul

    Thank you for your help.

    Problem is solved.

    I was download and install EasyBCD.

    Then I BCD deployment-> install Win7 MBR bootloader-> write MBR

    After computer restart to see the problem with start, but after repair (from DVD instalation) everything works ok.

    Regards Robert

  • HP Photosmart 6520 and problems with the air IPAD using IOS 8.0.2

    Used APPLE IOS 7. No problem with printing to the 6520. Now, I've updated to version 8.0.2. now, to get a message on the IPAD, saying: 'no printer not found '. No printing from laptop to printer and no problem shows on laptop as the printer selected in the folder devices and printers. Y at - it an update of software of HP to run version 8.0.2. .

    JERENDS, thanks for your response. I had already tried the "hard restart" at the suggestion of the Apple Tech Help, but that doesn't seem to help. But late last night after posting my question Imtried print again and IPAD are my printer without problem. Why he couldn't find yesterday morning but has been able to find it later in the day is one of the mysteries of life, I guess.

  • Error 16 and adobe application manager and problem with uninstalling

    Hello

    Big problem with ligthroom CC,

    Initially, I got the error 16, I changed the name of some files the other instructions.

    Now, Lightroom still doesn't work and ask me for the "Adobe Application Manager, which is absent or"injured", to run the trial version. But I no longer use the version been trying for over 2 months!

    I tried to uninstall Lightroom and it does not work, adobe talk a uninstall problem. I tried everything it was written and still does not work

    Please, help me!

    under PC

    Thank you

    Error 16: Creative Suite help / Error Configuration 16 | CC, CS: http://helpx.adobe.com/x-productkb/policy-pricing/configuration-error-cs5.html

  • Problems with utl_https, Oracle Wallet and firewall

    Hi all
    We experiment utl_http and Oracle wallet and try to make a transfer of https, but we are facing some problems. I'd appreciate your help greatly if you can advise on what could be wrong. We are on db version 10.2.0.1 and Unix HP - UX and operate since in a firewall. The intention is a https url ping command and get a 200 simple answer. Future development would include documents XML get/post to this url and other interesting things. I understand that utl_http with Oracle wallet can be used for this purpose.

    The portfolio was created and the ewallet.p12 exists. We downloaded the url Web site SSL certificate and downloaded in the portfolio. Everything works if I put in a url with http simple but then things work with a HTTP * S * url. Is what is called HTTPS TUNNELING required because we have a firewall? I don't know what it is or how it can be done.
    I tried https with a URL internal breast of the firewall. But again, no luck. -So probably not just a firewall problem.
    With HTTPS when I run the code below, I get the following error with https internal or external sites. Yet once, greatly appreciate your time and help because it is the first time us use Oracle wallet manager and don't know where to go from here.

    ORA-29273: HTTP request failed
    ORA-06512: at "SYS." UTL_HTTP", line 1029
    ORA-29268: error of the HTTP client

    declare
    URL varchar2 (225);
    Utl_http.req req;
    resp utl_http.resp;
    my_proxy BOOLEAN;
    name varchar2 (2000);
    value varchar2 (2000);
    V_proxy VARCHAR2 (2000);
    v_n_proxy varchar2 (2000);
    v_msg varchar2 (100);
    v_len PLS_INTEGER: = 1000;
    BEGIN
    -Disable the verification of the status code.
    Utl_http.set_response_error_check (false);
    -Set proxy server
    Utl_http.set_Proxy ('my-proxy');
    Utl_http.set_wallet ("file: < Unix full path to the wallet on DB server > ',' wallet998'");
    Req: = utl_http.begin_request ('https://service.ariba.com/service/transaction/cxml.asp');
    -Authentication proxy set
    Utl_http.set_authentication (req, 'myproxyid', 'myproxypswd', 'Basic', TRUE); -Use HTTP Basic

    resp: = utl_http.get_response (req);

    FOR i IN 1.utl_http.get_header_count (resp) LOOP
    Utl_http.get_header (RESP, i, name, value);
    dbms_output.put_line(Name ||) ': ' || (value);
    END LOOP;
    Utl_http.end_response (resp);
    exception
    while others then
    dbms_output.put_line (SQLERRM);
    END;

    user11992646 wrote:

    The difference between your method and this new method is that you spend the user_name: pswd as part of the url, so here it is passed as a parameter of the set_proxy.

    Using the user name and password in the proxy URL is often the easiest way to deal with authentication of the proxy - even supported under Linux with the environment variable http_proxy (that you can set for s/w to detect which is the proxy configuration, when access to the web).

    Would be in him passing a part of set_proxy also be considered as in "clear text"?

    Don't know exactly what it generates http traffic. Likely basic auth?

    It may seem that some form of "+ encryption +" is done with basic authentication. The user name and password are strung with a colon separator and then encoded in base64. So, the resulting string seems encrypted to the human eye, but can easily be decoded again (no secret necessary to perform decoding).

    So this is about as insecure as passing user name and password in clear text - darkening bit added to the meter reading it naked.

    In the Windows world (where it is stuck inside and look at the free and open to the outside Standards), proxy servers often use NTLM (new technology/LAN Manager) authentication. Not this again as LanManager goes back to BACK 5 project of the 1980s. ;-)

    Anyway, NTLM is a proprietary protocol and not easily supported when you code using UTL_HTTP. Basic authentication will fail in this case, the proxy expects that NTLM authentication. The workaround is to add the user name and password to the URL of the proxy (as I did in this example code).

    My problem is why set_authentication does not require us to use methods "unsupported"? It seems an obvious Oracle bug that they must solve.

    I think that you also use NTLM authentication on the proxy server? This isn't a standard. It is the crass seller proprietrary. No real compelling reason for other providers to support - especially not when there are open standards available and used.

    We have a beautiful SR and you said that you have opened a SR before without success. I'm surprised Oracle is dropping the ball on such a useful tool.

    My SR has been essentially around get UTL_HTTP proxy access work with NTLM - where workaround has been as I described. I don't see this as a particular problem, Oracle have to solve.

    The question is a consequence of the decision to use proprietary protocols and "+ standards. If anyone is to blame, it's Microsoft and their attempts at blocking of clients in a complete solution of owner. Unfortunately, these attempts often succeed too.

  • Design pattern using queues and notifiers and problem with sync

    Hello

    I'm rearchitecturing a 4-channel data acquisition system which includes data acquisition, indexing of data between four channels, signal processing and recording of data.

    All processes are placed in a single loop, and I have subdivided by the following in a producer and consumer two loop (or master with both loops slave), use a queue to manage orders and send the actual data through a notification list. I'm new to this, so I don't know how to go for rearhitecturing but am trying to move several loops. Instead of placing each channel in its own loop, I used only 2 to save duty all architecture. The acquired data are also indexed in the two loops (loop1, loop2):

    Main loop: data acquisition (DAQ Assistant) where Notifier sends data to consumers loops, queue for General commands

    Loop1: bed (table 2D index), addresses and records the data for channels 1 and 2

    Loop2: bed (table 2D index), addresses and records the data for channels 3 and 4

    Question 1: Is it ok to use Notifier and queue in the artchiture (best practices)? I would use two queues, but I find that the program may have a lag (although it lacks all data) and who interrupts the acquisition for the user and I don't want that. I prefer the program to retrieve data in real time and then decided to use the authors of notifications to send data to loops1 & 2. What are the caveats of this? Given that I am gaining at the rate of 1 s/s, maybe it will be enough.

    With respect to the orders queue, this is done and two commands are queued in order to activate loops1 & 2. Using multiple loops slave/consumer, how we manage several channels? the user can choose to acquire all the channels simultaneously or one at a time. I am able to activate the four channels. In this case, because loops can not run in order, how do you ensure that the item is read by the right loop?

    I'm running into a few problems:
    Question 2: synchronizing data - use 'wait on ms' synchronize all loops (main loop and loop1, loop2)
    -data doesn't seem to be very good sync - why is - this? consumer of treatment<>
    -what I'm missing?
    Question 3: processing loss data - because using filers is frozen and using queues is not, I did so that orders of the so-called 'turn on' the two loops is done using a queue. I compared it with the notifiers
    Question 4: Errors - I made loops 1 & 2 output on the notifier error error - they throw an error when the program stops so happy so I was testing for. I read some ni.forums he's talking about is enough, but what are the other types of error monitoring (error reporting)? Thank you very much for reading!

    I programmed so far and it can read all or individual channels but I want check against all cases, that's why I ask these questions to check. I know that architecture may not be the best, so any suggestions would be welcome. I try to get the synchronization of the time and I don't want any data with loss. I guess that the use of queues to send data and commands is ok?

    Thank you in advance for your help!


  • ORA-00904 ROW_NUMBER, problem with ORDER BY id

    Hello world

    I use Oracle 9i, I use ROW_NUMBER and I got the ORA-00904 because of the ORDER BY identifier.
    SELECT      * 
    FROM      (SELECT c.id_comp, 
              c.nom, 
              c.id_type_comp, 
              c.libelle, 
              c.standard, 
              c.id_comp_std, 
              c.id_comp_grp, 
              (SELECT      t.nom 
              FROM      type_composant t 
              WHERE      t.id_type_comp=c.id_type_comp ) 
              AS      nom_type_comp , 
              (SELECT t.libelle 
              FROM      type_composant t 
              WHERE      t.id_type_comp=c.id_type_comp ) 
              AS      libelletype, 
              (SELECT cc.nom 
              FROM      composant cc 
              WHERE      cc.id_comp=c.id_comp_std ) 
              AS      nom_comp_std, 
              (SELECT ccc.nom 
              FROM      composant ccc 
              WHERE      ccc.id_comp=c.id_comp_grp ) 
              AS      nom_comp_grp, 
              ROW_NUMBER() OVER (ORDER BY nom_type_comp) R 
         FROM composant c) 
    WHERE      nom LIKE '%' 
    AND      R BETWEEN 0 and 200 
    ORDER BY nom_type_comp;
    And here is the error:
     ROW_NUMBER() OVER (ORDER BY nom_type_comp) R FROM composant c)
                                        *
    ERROR at line 25:
    ORA-00904: "NOM_TYPE_COMP": invalid identifier
    Apparently, it takes the pseudonym I use. I tried with the query instead of the alias, and it worked. Is there a way to do it with the alias because I would use a variable with my ORDER BY.

    Any help would be nice!

    Andalusians

    Published by: Guich may 12, 2011 10:40

    You may not use an alias defined on the same query plan.
    The alias must be from a subquery.
    Such as:

    SELECT      *
    FROM      (select my_table.*, ROW_NUMBER() OVER (ORDER BY nom_type_comp) R
             from  (SELECT c.id_comp,
                     c.nom,
                     c.id_type_comp,
                     c.libelle,
                     c.standard,
                     c.id_comp_std,
                     c.id_comp_grp,
                     (SELECT      t.nom
                     FROM      type_composant t
                     WHERE      t.id_type_comp=c.id_type_comp ) AS      nom_type_comp ,
                     (SELECT t.libelle
                     FROM      type_composant t
                     WHERE      t.id_type_comp=c.id_type_comp ) AS      libelletype,
                     (SELECT cc.nom
                     FROM      composant cc
                     WHERE      cc.id_comp=c.id_comp_std ) AS      nom_comp_std,
                     (SELECT ccc.nom
                     FROM      composant ccc
                     WHERE      ccc.id_comp=c.id_comp_grp ) AS      nom_comp_grp
                FROM composant c) my_table)
    WHERE      nom LIKE '%'
    AND      R BETWEEN 0 and 200
    ORDER BY nom_type_comp;
    

    Nicolas.

Maybe you are looking for