Problem when calling more than 1 Javascript function

Hello everybody,
I am trying to disable fields based on the value in a Select List. There is a table in which values are stored to tell if a field should be disabled for the selected value. I have created an Application Process and a JavaScript function for each field.
The problem is that only the first function is executed, and the second not.
I have tried the following:
onchange="Disable_Dagen(this);Disable_Kg(pThis);"and I have put them together in a parent JavaScript function
function Disable_Fields(pThis){
Disable_Kg(pThis);
Disable_Dagen(pThis);
}In either case only the first works, so when I change the order then the other one is executed properly.
Can anyone give me a clue on how to solve this?
My complete JavaScript definition in the header is as follows:
(the code in html_DisableOnValue is taken from the example site from Carl Beckstrom)
<script language="JavaScript" type="text/javascript">
<!--
function html_DisableOnValue(pThis,pValue,pThat){
     var lTest;
  if(pThis.nodeName == 'SELECT'){
               lTest = html_SelectValue(pThis) == pValue;
     }else{
               lTest = $x(pThis).value == pValue;
     if(pThat){
           for (var i=2;i <= arguments.length; i++){
                      html_disableItem(arguments,lTest)
     return;
function Disable_Dagen(pThis){
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AP_RETURN_DISABLE_VAL_DGN',0);
get.add('AI_AFW_CODE',pThis.value);
gReturn = get.get();
get = null;
//alert('Return waarde is '+ gReturn );
html_DisableOnValue(pThis,gReturn,'P43_AANTAL_DAGEN');
function Disable_Kg(pThis){
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AP_RETURN_DISABLE_VAL_KG',0);
get.add('AI_AFW_CODE',pThis.value);
gReturn = get.get();
get = null;
//alert('Return waarde is '+ gReturn );
html_DisableOnValue(pThis,gReturn,'P43_AANTAL_KG');
function Disable_Fields(pThis){
Disable_Kg(pThis);
Disable_Dagen(pThis);
//-->
</script>
In this case the Form Element property is set toonchange="Disable_Fields(this)"
Thanks, Wouter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi Roel,
Thanks again for your response.
There is a lot more to Firebug then I had seen before. Now I have turned on the Console and the Script. Initially I saw the following in the Console:
C is undefined
$x_disableItem(undefined, true)apex_3_1.js (regel 1)
html_DisableOnValue(select#P43_AFWIJKING_CODE, "101", "P43_AANTAL_DAGEN")f?p=104:...2606::::: (regel 38)
Disable_Dagen(select#P43_AFWIJKING_CODE)f?p=104:...2606::::: (regel 51)
onchange(change )f?p=104:...FPQ%3D%3D (regel 2)
[Break on this error] var gDebug=true;var gkeyPressTime;var gL...Options;html_SelectValue=$f_SelectValue;When I removed the comments before the 2 Alerts, I only got one alert when I tested it.
Then I replaced the function call to html_DisableOnValue to $f_DisableOnValue as you suggested, and that did the trick. Now it Works!
I still don't know why the html_DisableOnValue function doesn't work. I just copied it from the demo site of Carl Beckstrom. Anyway my problem is solved.
Have a nice weekend, Wouter

Similar Messages

  • PRoblem when posting more than one document

    Hi all,
    I'm using BAPI    BAPI_GOODSMOVEMENT_CREATE to post the documents for PO_GR.when i post one document through text file it is done succesfuully. when i'm posting more than one document it is giving error "posting not possible".
    My code is as follows:
    loop at i_data.
    concatenate '0'   i_data-stor_loc  into i_data-stor_loc.
    concatenate '00'  i_data-plant     into i_data-plant.
        i_item-po_number  = i_data-po_no.
        i_item-po_item    = i_data-po_item.
        i_item-move_type  = i_data-mvt_type.
        i_head-doc_date   = doc_date.
        i_head-pstng_date = post_date.
        i_head-ref_doc_no = i_data-del_note.
        i_item-entry_qnt  = i_data-entry_qty.
        i_item-stge_loc   = i_data-stor_loc.
        i_item-plant      = i_data-plant.
        i_item-stck_type  = i_data-stk_type.
        i_item-batch      = i_data-batch.
    I_ITEM-move_val_type      = i_data-move_batch.
        APPEND: i_item,i_head.
        CLEAR:i_item.
      ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
       EXPORTING
         goodsmvt_header             = i_head
         goodsmvt_code               = i_code
       TESTRUN                     = ' '
      IMPORTING
      GOODSMVT_HEADRET            =
        MATERIALDOCUMENT            = matdoc
       MATDOCUMENTYEAR             =
       tables
         goodsmvt_item               = i_item
       GOODSMVT_SERIALNUMBER       =
         return                      = return
      IF return IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
      LOOP AT return.
        WRITE: return-message.
      ENDLOOP.
      WRITE: matdoc.
    PLease specify where i'm going wrong.
    Regards,
    SImha.

    Hi,
    I had used the same FM to post multiple documents, but never faced this error.
    *- Header
      MOVE: sy-datum TO bapigm_head-pstng_date,
            sy-datum TO bapigm_head-doc_date,
            sy-uname TO bapigm_head-pr_uname,
            v_mblnr  TO bapigm_head-ref_doc_no,
            con_bfwms_bestand TO bapigm_head-ext_wms.
    *- Item
    *- Populate item data
      LOOP AT i_items_trans.
        CLEAR ibapigm_item.
    *- Convert the matnr backto 18 char form (External)
        CALL FUNCTION 'CONVERSION_EXIT_MATN2_INPUT'
          EXPORTING
            input            = i_items_trans-matnr
          IMPORTING
            output           = i_items_trans-matnr
          EXCEPTIONS
            number_not_found = 1
            length_error     = 2
            OTHERS           = 3.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        ibapigm_item-material   = i_items_trans-matnr.
        ibapigm_item-plant      = i_items_trans-werks.
        ibapigm_item-stge_loc   = i_items_trans-lgort.
        ibapigm_item-move_type  = '101'.   "Goods Receipt
        ibapigm_item-mvt_ind    = 'B'.     "Goods Movement for PO
        ibapigm_item-po_number  = i_items_trans-ebeln.
        ibapigm_item-po_item    = i_items_trans-ebelp.
        ibapigm_item-entry_qnt  = i_items_trans-ktmng.
        ibapigm_item-entry_uom  = i_items_trans-meins.
        APPEND ibapigm_item.
      ENDLOOP.
    *-Call FM
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header  = bapigm_head
          goodsmvt_code    = bapigm_code
        IMPORTING
          goodsmvt_headret = bapigm_headret
        TABLES
          goodsmvt_item    = ibapigm_item
          return           = ibapigm_ret.
    *- Commit on Success
      IF NOT bapigm_headret-mat_doc IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Raj

  • Trial version problem when using more than 1 track - does trial version same as full one?

    I am thinking of upgrading to Premiere Elements 9 as I have upgraded my laptop. But the trial version Premiere Elements 9 doesn't even perform as well (with the same media) as Elements 4.0 did on my old laptop.
    My new laptop is an HP Pavilion with Intel(R) Core i7 Q720 @ 1.6GHz (I was a bit wary of the low GHz but HP explained that that was still better than a higher GHz figure for an i5).   I am editing both MP4 and avi files at 720 x 480.
    The problem is that as soon as I start to use more than a couple of video tracks, playback slows right up, making editing difficult.   Other software packages I have trialled on the new laptop (such as Sony Vegas) don't slow up at all, but I'd rather not buy them as I am very familiar with Premiere Elements now.
    Is this a problem with the trial version which woudl be solved if I bought the full version, or will it be the same?
    Thanks very much for any help

    The AVI format is but a wrapper. Almost anything can be inside that wrapper. This ARTICLE will give you more background, and will also tell you how to determine what is inside the wrapper.
    Especially with a laptop, I strongly recommend tuning the computer for an editing session. This ARTICLE will give you some tips. Note: there are a couple of links, just for Win7. Also, there are some good tune-up tips in the forum FAQ section, to the right of the main forum page. Of special note: the active anti-virus, pop-up blockers and spy sweepers are known to cause all sorts of problems, when trying to edit video.
    One major consideration with a laptop is the I/O sub-system - the HDD's. Most laptops only have one internal HDD, and that is anything but ideal. With eSATA external HDD's, one can get very nearly the same performance, as with multiple internal HDD's. This ARTICLE will give you tips on using external HDD's with video editing. Though I have 3x internal SATA HDD's in my laptop, I still rely on FireWire 800 (IEEE-1394b) externals, and they work well. Using eSATA would be even better. For more info on the I/O sub-system, see this ARTICLE.
    Good luck,
    Hunt

  • Iphone 3g pop3 email problems when having more than 1 email account.

    sending emails from more than one pop email account...
    after checking and re-checking settings for pop email accounts [ follow the apple settings example for setting the first email account] i found that the iphone 3G does not support having more then one smtp server in other words it does not supports - different smtp servers.] so the only way to make two or more email accounts to work correctly is to use only one smtp server for all the email accounts and this will allow to send emails from more than one email account.
    i think this is a bug on the iphone 3G......!!

    I access two email accounts with the iPhone's Mail client - an IMAP account and a POP account. The accounts have different authenticated SMTP servers and I have no problems sending with either account.

  • NIO - Selector problem - when using more than one in same application

    Hi,
    I'm developing a multiplayer-server, which shall be able to handle at least 2000 concurrent clients. To avoid the use of 4000 threads for 2000 clients (a thread for each stream), I would like to use NIO.
    Problem:
    The server has of course a ServerSocketChannel registered with a Selector, and when clients connects, the SocketChannel's is received. IF these channels is registered (OP_READ) with the same Selector-instance as the ServerSocketChannel, there is no problem and the Selector recognizes when a registered SocketChannel is ready for OP_READ - BUT when the received SocketChannels is registered with another Selector-instance than the one the ServerSocketChannel is registered with, the Selector NEVER recognizes, when a SocketChannel is ready for OP_READ - why not and how do I solve the problem? Only one thread can service the same Selector-instance, and when both receiving many connections and read/write, this could easily be a bottleneck
    Following is the used code; 2 classes: ClientListener (has a ServerSocketChannel registered with a Selector) and ClientHandler (has another Selector where the SocketChannels is registered and a thread-pool that services all the SocketChannels, when they are ready for read/write):
    public class ClientListener {
      private static final int BACKLOG = 32;
      private int port;
      private Thread internalThread;
      private volatile boolean noStopRequested;
      private ServerSocketChannel ssc;
      private static Selector selector;
      private ClientHandler clientHandler;
      public ClientListener(ClientHandler clientHandler, String bindAddress, int port) throws InternalErrorException {
        this.clientClass = clientClass;
        this.clientHandler = clientHandler;
        this.noStopRequested = true;
        this.port = port;
        try {
          InetAddress inetAddress;
          if (bindAddress.equals(""))
            inetAddress = InetAddress.getLocalHost();
          else
            inetAddress = InetAddress.getByName(bindAddress);
          ssc = ServerSocketChannel.open();
          ssc.socket().bind(new InetSocketAddress(inetAddress, port), BACKLOG);
          ssc.configureBlocking(false);
          Runnable r = new Runnable() {
            public void run() {
              try {
                start();
              } catch (Exception e) {
                Log.echoError("ClientListener: Unexpected error: "+e.getMessage());
          internalThread = new Thread(r, "ClientHandler");
          internalThread.start();
        } catch (Exception e) {
          throw new InternalErrorException(e.getMessage());
      public static Selector selector() {
        return selector;
      private void start() {
        Log.echoSystem("ClientListener: Listening started at port "+port);
        try {
          selector = Selector.open();
          SelectionKey acceptKey = ssc.register(selector, SelectionKey.OP_ACCEPT);
          int keysAdded;
          while (noStopRequested) {
            SelectionKey key = null;
            keysAdded = selector.select(10000);
            if (keysAdded == 0)
              continue;
            Set readyKeys = selector.selectedKeys();
            Iterator i = readyKeys.iterator();
            while (i.hasNext()) {
              try {
                key = (SelectionKey)i.next();
                i.remove();
                if (key.isAcceptable()) {
                  ServerSocketChannel nextReady = (ServerSocketChannel)key.channel();
                  SocketChannel sc = nextReady.accept();
                  try {
                    clientHandler.registerClient(sc);
                  } catch (Exception e) { e.printStackTrace(); }
              } catch (CancelledKeyException cke) {
                System.out.println("ClientListener: CancelledKeyException");
        } catch (Exception e) {
          e.printStackTrace();
          try {
            ssc.close();
          } catch (IOException ioe) {/* Ignore */}
        Log.echoSystem("ClientListener: stopped");
      public void stop() {
    public class ClientHandler {
      private static final int INITIAL_WORKER_COUNT = 5;
      private int port;
      private Thread internalThread;
      private volatile boolean noStopRequested;
      private static Selector selector;
      private Manager manager;
      private WorkerPool pool;
      private ClientListener clientListener;
      public ClientHandler(Manager manager, String bindAddress, int port) throws InternalErrorException {
        this.manager = manager;
        this.noStopRequested = true;
        this.port = port;
        clientListener = new ClientListener(this, bindAddress, port);
        // initiating load-balanced worker-pool
        pool = new WorkerPool(INITIAL_WORKER_COUNT, (int)(manager.getMaxClients() * ClientWorker.CLIENT_FACTOR), 0.75f);
        for (int i=0; i < pool.getMinCount(); i++) {
          pool.addWorker(new ClientWorker(pool, manager));
        Runnable r = new Runnable() {
          public void run() {
            try {
              start();
            } catch (Exception e) {
              Log.echoError("ClientHandler: Unexpected error: "+e.getMessage());
        internalThread = new Thread(r, "ClientHandler");
        internalThread.start();
      public static Selector selector() {
        return selector;
      private void start() {
        Log.echoSystem("ClientHandler: Started");
        try {
          selector = Selector.open();
          int keysAdded;
          while (noStopRequested) {
            SelectionKey key = null;
            try {
              keysAdded = selector.select();
              Log.echoDebug("ClientHandler: out of select()");
              if (keysAdded == 0)
                continue;
              Set readyKeys = selector.selectedKeys();
              Iterator i = readyKeys.iterator();
              while (i.hasNext()) {
                try {
                  key = (SelectionKey)i.next();
                  i.remove();
                  if (key.isReadable()) {
                    key.interestOps(key.interestOps() & (~SelectionKey.OP_READ));
                    ClientWorker worker = (ClientWorker)pool.getWorker();
                    worker.process(key);
                  } else if (key.isWritable()) {
                    key.interestOps(key.interestOps() & (~SelectionKey.OP_WRITE));
                    ClientWorker worker = (ClientWorker)pool.getWorker();
                    worker.process(key);
                  } else {
                } catch (CancelledKeyException cke) {
                  Client client = (Client)key.attachment();
                  if (client != null) {
                    client.disconnect();
                    key.selector().wakeup();
            } catch (CancelledKeyException cke) {
              if (key != null) {
                Client client = (Client)key.attachment();
                if (client != null) {
                  client.disconnect();
                  key.selector().wakeup();
        } catch (Exception e) {
          e.printStackTrace();
        Log.echoSystem("ClientHandler: stopped");
      public void registerClient(SocketChannel sc) throws Exception {
        sc.configureBlocking(false);
        Client client = new Client(...);
        SelectionKey key = sc.register(selector, SelectionKey.OP_READ, client);
        key.selector().wakeup();
      public void stop() {
    }

    Ok, found the solution here: http://forum.java.sun.com/thread.jsp?forum=31&thread=282069
    "The select() method holds a lock on the selector that
    the register() method wants to acquire. The register()
    method cannot continue until the lock is relased and
    the select() method will not release it until some key
    is triggered. If this is the first key you're adding
    then select has nothing that will wake it up, ever.
    The result is, obviously, a deadlock.
    The solution is to have a queue of pending connections.
    You put your new connection in that queue. Then you
    wake up the selector and let that thread go through
    the queue, registering connections."

  • Rendering problem when viewing more than one document

    Hi
    I have a weird problem. When I open two or more documents the rendering of the pages gets extremely bad for all documents except the first one, which remains just fine. What to do?
    BR
    Christian

    Hi
    I have a weird problem. When I open two or more documents the rendering of the pages gets extremely bad for all documents except the first one, which remains just fine. What to do?
    BR
    Christian

  • Page layout problem when using more than 3 iviews(with Tab Strip controls)

    Hello Experts,
    I am using MS Visual Studio 2005 and PDK 2.5 for .net.
    I have created four iViews where two iViews are having TabStrip control which are dynamically added to iView.
    When I add iViews to the page and view page  ,I am not able to see the content of iViews having TabsStrip controls.
    But I can see contents with individual iView.I am using 3 columns layout for this scenario.
    I have tried all possible layouts available in EP.
    How should I placed iViews in page so that contents of iviews having Tabsrtip control will be displayed.
    Any help appreciated
    Regards
    Sunil Pawar

    Hi Sunil,
              Try changing the isolation property of iView to URL(Isolated) from Embedded-->Save .Now assign these iViews to the page.
    For more info,
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/97/0be13dc2fd605ae10000000a11405a/content.htm">Isolation Property</a>
    Regards,
    Vinoth.M

  • E-Mail not send when relevant BP is in more than one partner function

    Dear all,
    i am facing an big issue.
    My e-mail action does not work if the bp of the recipient is stored in more than one partner function in this incident.
    Is this a know bug ? What can i do about that?
    Best Regards
    Daniel
    Edited by: Daniel Titze on Feb 15, 2012 12:58 PM

    Hi, Daniel.
    I didn't met such a problem, but I happened to find this Knowledge Base Article (note №1521582 "Solution Manager: no mail is sent to processor of the message if sender and receiver are the same"):
    https://websmp130.sap-ag.de/sap(bD1ydSZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3135323135383226
    Hope it will be helpful.

  • Network or database calls are made when joining more than one table

    Hi Friends,
    could anybody please let me know how may networks are called when joining more than one table.
    Thanks
    Rinky

    Hi Rinky,
      Normally when a JOIN between two database tables is made then following steps occur:-
    1) The control goes to database. Based on the JOINING and WHERE condition, an internal table is created in the DATABASE only which is filled. So here the computation is done at DATABASE level.
    2) Once the internal table is filled at database level, it is sent back to the application level.
    A Join operation normally minimizes the round trips to the database as most of the computation is done at database level only and results sent back to the Application layer.
    <b>Thus for a simple JOIN OPERATION makes a single DATABASE call.</b>
    NOTE: If you are satisfied with the explanation, then please reward points
               accordingly :).
    Thanks and regards,
    Ravi .

  • Problem with starting more than one SwingWorker

    Hello
    I wonder if anyone could tell me if there are known problems with starting more than one SwingWorker thread at once?
    In response to an action the user performs, I need to obtain several lists of things from the server. This includes a couple of server-calls, and I want to do the server calls in a thread outside the awt-event thread. So I start a couple of SwingWorker-threads. This works fine sometimes, but not always. Sometimes code in some of the SwingWorkers finished method does not update the ui. I can see that the correct calls are made, but the ui is still not updated correctly. The problem seems to be related to the sequence of when the different thread are finished. For instance, if the sequence is like this:
    SwingWorker1.construct
    SwingWorker2.construct
    SwingWorker1.finished
    SwingWorker2.finished
    Things go fine, but if the sequence is:
    SwingWorker1.construct
    SwingWorker1.finished
    SwingWorker2.construct
    SwingWorker2.finished
    the ui-updates in SwingWorker1.finished is not done correctly.
    Can anyone help me with this?

    This is the point:
    In one SwingWorker thread you have 1 construct method, and 1 finish method - which are both invoked once.
    Therefore you only have one opportunity to update the gui in that thread. This forces you to use many threads if you want regular updates, which I try to avoid.
    Therefore, the solution!
    Have a loop in the construct method that executes the algorithm accordingly, updating the gui accordingly at regular times, maintaining just the 1 thread - becomes easier and nicer for the programmer and the JVM.
    The finish method in this case is to update the gui when all iterations are finished.
    There is nothing wrong with this. Just because you have a finish method that is called in the event-dispatching thread doesn't mean that all your update code must be in there.
    What you MUST ensure is that ALL your update code is executed in the event-dispatching thread, that is the most important thing. After all, SwingWorker is just a helper class, not the gospel template of how to update a gui.

  • IMac (2008) OS10.6.8 - Main menu freezes when running more than one application at a time.  Apple and 3rd party applications - all freeze the main menu.  Safe mode seems to work OK. Tried repairing permissions - didn't work.

    For the past 60 days I've experienced Main Menu freeze when running more than one application at a time.  iPhoto, Preview, Text Edit, Epson Scan, Firefox and Thunderbird are the apps I use almost daily.  No matter what I do, when more than one is running they will freeze the Main Menu (top of the screen).  I've tried booting is Safe Mode and I don't seem to have a problem.  I've tried several suggestions from repairing permission (DiskUtility) to eliminating specifis login items.  Nothing works. I've posted this issue on the Apple forum several times and no one else has experienced this problem.  I hesitate to take my iMac to the Apple Store or a private Apple repair service until I've exhausted all of my options.  Do I have any more options?    

    Question:  Everytime an app crashes I have the option to report it to Apple - which I usually do.  But I've NEVER reported a Main Menu freeze because it never asks me to
    There's really no need to submit to Apple, it's just a round file cabinet on the other end, especially with 10.6 or earlier.
    This sure sounds like a resource problem...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab, are there a lot of Pageouts?

  • Error using pretrigger when capturing more than one channel

    I am having problems acquiring data with pretrigger samples when capturing more than one channel, using NI-PXI-6071E hardware and Labview's Analog Input VIs (Legacy NI-DAQ).
    My goal is to trigger on one signal, while capturing another. Unfortunately, I cannot use the PFI0 for external triggering, as our cables/hardware have already been built, so I must use an analog input channel as the trigger. I understand that to do so I must capture both channels, and the channel that I wish to trigger off of must be the first channel in the list.
    If I trigger and capture on the same channel (tried 1-4) then it
    works great, regardless of the number of pre-trigger samples set. If I
    capture more than one channel (passing the trigger channel first), with no pretrigger samples set, then triggering and capturing both work fine. However, if I do the same with the pretrigger sample > 0 I get the following error:
    Error -10621 occurred at AI Control. Possible reason(s):
    NI-DAQ LV: The specified trigger signal cannot be assigned to the trigger resource.  
    I don't se any such limitation explained in the user manual, and searching the forum, I have found a few other people that had the
    same
    problem
    but they did not have solutions. Any ideas?
    Solved!
    Go to Solution.

    I'm sorry for double-posting this. I was trying to post it in the DAQ board and it kept ending up on the LabView board.
    If moderators have the ability to delete this thread you are welcome to do so.

  • Startup issue when having more than one database on machine

    Startup issue when having more than one database on machine:
    I’ve installed two databases.
    When I shutdown one of the database and try to start it up using
    Startup pfile=’…location..’;
    I get ora-12514: TNS: listener does not currently know of service rquirest in connect descriptor
    when I try it again after 3 seconds, I get a new error, ora-01041: internal error. Hostdef extension doesn’t exist
    Shutdown and Startup gave no problems when I had one database. Why am I getting problems when I have two databases?
    I’m using: show parameter pfile|spfile; to make sure I have the right parameter locations, so the error shouldn’t be from location.
    I’ve never installed two databases on one machine, so maybe I’m making a first-timer’s error.
    Anyone know how to get this working, i.e. starting and stopping DB without issues?
    Using oracle 11gR2 on Windows 7 64bit, all is working normal.
    Thanks,
    Ayman
    Edited by: aymanzone on Jun 15, 2011 9:27 AM

    aymanzone wrote:
    my oracle_sid is set to the name of one of my databases
    echo %oracle_sid%
    shows me the name of my first database.
    Still not working though.
    When I start the services of both databases using Services, I can connect and run queries from both of the database.
    Edited by: aymanzone on Jun 15, 2011 11:47 AMFirstly ... the Oracle Service for the instance should be started for the DB you are trying to connect or start.
    Next ... from the command prompt:
    set oracle_sid=<Instance_Name>
    sqlplus sys as sysdba
    startup pfile='location of the respective db pfile'
    Now, if you want to start or connect to another DB which is on the same server (again assuming the Service is STARTED) ...
    From the same command prompt session or other ....
    set oracle_sid=<Other_Instance_Name>
    sqlplus sys as sysdba
    startup pfile='location of the respective db pfile'
    Edited by: Srikanth on Jun 16, 2011 12:27 AM

  • My MacBook Air shuts down when its more than half way charged and won't turn on unless I plug it in to the adapter? Why is this happening and how can I fix it?

    My MacBook Air shuts down when its more than half way charged and won't turn on unless I plug it in to the adapter? Why is this happening and how can I fix it?

    If you really do have a Mid 2013 Mac Air model then it is still in warranty, as the standard Apple warranty is one year from date of purchase. So take it into an Apple store and have it diagnosed and fixed under the warranty. There is some type of hardware problem that only Apple can fix.

  • General Logic about More than 1 partner function

    Hi
    while creating partner Determination procedure,we used do define partner functions.for that their are coloumns called mainimum and Maximum.here we can define more than 1 partner functions.
    assume we have defined sold to party 3 ,ship to party 3, bill to party 3.
    while create Business transaction type( for ex order), we need to enter 3 sold to party ,3 ship to party 3, 3 bill to party.
    What is the general business process behind this. because how can we use 3 sold to party ,3 ship to party 3, 3 bill to party for a single product in a single document.
    can any one explain the general business idea behind this.
    regrads,
    sunil

    Hi.
    It seems it has no logic because you are thinking on this for sales order process and those kind of partner functions, but think for instance on a opportunity process, where you can have more than one employee responsible, or more than one contact person on the customer that can influence the negotiation.
    This can be used in this scenario for instance.
    Regards,
    Susana Messias

Maybe you are looking for

  • How do you reference assembly resources from MP in PowershellGrid Widget script

    Instead of shipping my custom assemblies to a known location on the system center 2012 server in separate files, I'm trying to use assembly resources to do this.  The issue I am having is referencing these assemblies in the script for the PowershellG

  • Help needed with pattern matching (analytics SQL ?)

    Hello Forum Users, I've got a curious problem on my hands that I am unable to think of an efficient way to code in Oracle SQL .... (1) Background Two tables : MEASUREMENTS ID NUMBER M1 NUMBER M2 NUMBER M3 NUMBER M4 NUMBER INTERESTING_VALUES ID NUMBER

  • Small problem could it be fixed? Green strickes

    I was cleaning the emac screen cause of dust and such and was using the iKclear polish which did not work on my emac just made strikes on it then used the Clear Screen (CRT cleaner) and it made green marks,lines on the screen but not that visible. Th

  • ITunes on ex hd

    ok, prob a simple question, but I have moved everything to do with iTunes to a ex hd, now how do I move it back?? I tried dragging it but that just copied it & couldn't open iTunes without hd being connected. Thanks!

  • Accounting Document  for MIRO postings.

    Dear Guru’s We recently did the client copy between the Production to the Quality. Where as we check all tables. Tables are copied in full and we did random check for data and applications of the tables. Now we posted few documents in the MIRO we are