How to check the host name or rename the host name in Enterprise Manager

Hello,
How do i check the host name or rename the host name in Enterprise Manager for Oracle 11g?
Regards,
Ming Man

there is a shell script called chgip or something
like that is there . I used it for IAS. I beleive the
same is there for database too
Rajesh AlexIf there is, I have not been able to find it.
Off the top of my head, changing the host name involves at least the following (others feel free to add on):
For listener and connectivity
- listener.ora
- tnsnames.ora (on all clients as well)
- potentially ldap.ora (on all clients as well)
- init.ora parameter LOCAL_LISTENER
For admin using Enterprise Manager (starting 10g)
- the contents of the sysman schema
- the directory name of the OEM agent directory
- the directory name of the OEM OC4J config directory
- various config files in the OEM OC4J config directory
Oracle provides the emca to handle this last set.
In addition, the following refer to hosts that are [probably] not local
- init parameter REMOTE_LISTENER (usually just points to a tnsnames.ora entry naming remote hosts)
- init parm SMTP_OUT_SERVER
Again, adding to the list might be interesting.

Similar Messages

  • How to check whether a file exist in the program folder or not?

    Hi guys,
    how to check whether a file exist in the program folder or not? Let is say i recieve a file name from user then i want to know if the file is there not and act on that base.
    abdul

    Look at the class java.io.File and the .exists() method:
    http://java.sun.com/j2se/1.4/docs/api/java/io/File.html

  • How to check up Integrity of basis on the server ?

    How to check up
    1. Integrity of basis on the server
    2. Presence of necessary fields in bases
    Why ask ?
    There is for a long time imported in ZCM station XP.
    In properties of agent ZCM at this station I see that all politicians are applied successfully.
    In the https://zcmserver | ws Xp_KAP| Relationships | Assigned Policies | Inherited
    for Dynamic Local User Policy "01UsersRightsDLU" Deployment Status = Unknown.
    If remove (unreg) from ZCM this WS and import Again - all properies will be OK...
    ( I have some such for a long time imported machines with similar problems. )
    Serg

    Originally Posted by AndersG
    Skoltogyan,
    > Thanks. I will look forward to hearing
    Sorry. I shuould have spotted that myself. The command you entered is wrong. You entered:
    /opt/zdc # ./zdc verify -b /var/opt/novell/zenworks/database/zenworks_AMI_COMPANY_ZONE.db
    Should have been:
    /opt/zdc # ./zdc verify -b /blabla/zcm_10.x.x.zdc
    Ie you enter the full path to the baseline file, not the database for -b
    Anders Gustafsson (NKP)
    The Aaland Islands (N60 E20)
    Novell has a new enhancement request system,
    or what is now known as the requirement portal.
    If customers would like to give input in the upcoming
    releases of Novell products then they should go to
    http://www.novell.com/rms
    cd /opt/zdc
    ./zdc verify -b
    and in the log-file get 3 errors:
    1)
    + Initializing native libraries.
    [ERROR] [ZDCNative]
    [!] Could not load native library, native features will be disabled
    [DEBUG] [ZDCNative] /opt/zdc/lib/native/libzdcnative.so: librpm-4.4.so: cannot open shared object file: No such file or directory
    java.lang.UnsatisfiedLinkError: /opt/zdc/lib/native/libzdcnative.so: librpm-4.4.so: cannot open shared object file: No such file or director
    y
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1676)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:993)
    at com.novell.zenworks.zdc.system.platform.ZDCNative. initialize(ZDCNative.java:20)
    at com.novell.zenworks.zdc.system.platform.ZDCNative. <clinit>(ZDCNative.java:33)
    at com.novell.zenworks.zdc.DiagnoseZen.startZDC(Diagn oseZen.java:105)
    at com.novell.zenworks.zdc.DiagnoseZen.start(Diagnose Zen.java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at com.novell.zenworks.zdc.boot.Bootstrap.main(Bootst rap.java:110)
    [INFO ] [DiagnoseZen]
    + Attempting to connect to database.
    [TRACE] [DatabaseConnector] Establising JDBC connection.
    [TRACE] [DatabaseConnector] JDBC connection established.
    [INFO ] [DiagnoseZen]
    2)
    [ERROR] [ZDCNative]
    [ERROR] [FileVerifier] File '/opt/novell/zenworks/share/tomcat/webapps/zenworks-reportadmin/WEB-INF/web.xml' is missing!!!
    [ERROR] [FileVerifier] File '/opt/novell/zenworks/share/tomcat/webapps/zenworks-reportadmin/WEB-INF/classes/com/novell/zenworks/webservice/reportadmin/ReportAdminImpl.class' is missing!!!
    [ERROR] [FileVerifier] File '/opt/novell/zenworks/share/tomcat/webapps/zenworks-reportadmin/WEB-INF/classes/com/novell/zenworks/webservice/reportadmin/ReportAdminTieSkeleton.class' is missing!!!
    [ERROR] [FileVerifier]
    3)
    [TRACE] [DBObjectComparer] Constraint 'fk_zDevice_ZUID' is okay.
    [TRACE] [DBObjectComparer] Comparing Triggers
    [ERROR] [DBObjectComparer] Mismatch in Trigger 'tg_IsRetired_Ins_Upd' structure!!!
    Expected: [Name: tg_IsRetired_Ins_Upd, Table: zDevice, Definition hash: 5e61ed8]
    Found : [Name: tg_IsRetired_Ins_Upd, Table: zDevice, Definition hash: d789549a]
    [DEBUG] [DBObjectComparer] Additional Information:
    create trigger -- when zDevice is retired or unretired let NC_Workstation know
    tg_IsRetired_Ins_Upd after update on
    zenadmin.zDevice
    referencing old as oldtable new as newtable
    for each row
    begin
    declare @Retired1 tinyint;
    declare @RetiredDate1 datetime;
    declare @ZUID1 binary(16);
    if(newtable.Retired <> oldtable.Retired) then
    set @Retired1=newtable.Retired;
    set @ZUID1=newtable.ZUID;
    if(@Retired1 = 1) then
    set @RetiredDate1=newtable.RetiredDate;
    update NC_WORKSTATION set
    NC_WORKSTATION.IsDeleted = @RetiredDate1
    where NC_WORKSTATION.ZenWorksAgentID = @ZUID1;
    update NC_COMPONENT set
    NC_COMPONENT.IsDeleted = @RetiredDate1
    where NC_COMPONENT.IsDeleted is null
    and WORKSTATIONOID = any(select WORKSTATIONOID from NC_WORKSTATION where ZENWORKSAGENTID = @ZUID1)
    else
    set @RetiredDate1=oldtable.RetiredDate;
    update NC_WORKSTATION set
    NC_WORKSTATION.IsDeleted = null
    where NC_WORKSTATION.ZenWorksAgentID = @ZUID1;
    update NC_COMPONENT set
    NC_COMPONENT.IsDeleted = null
    where NC_COMPONENT.IsDeleted >= @RetiredDate1
    and WORKSTATIONOID = any(select WORKSTATIONOID from NC_WORKSTATION where ZENWORKSAGENTID = @ZUID1)
    end if
    end if
    end
    [ERROR] [TableHelper]
    [!] 1 errors found while verifying Triggers of Table zDevice
    [DEBUG] [TableHelper] Verifying table 'zDeviceCreationInfo'
    [TRACE] [DBObjectComparer] Comparing Columns

  • SID Showing instead of friendly name after renaming the server

    I had to rename a windows 2012 R2 server and after I rename it, Sever is showing SID instead of user friendly name.
    Even when I try to add new domain group or user in any resourse of this server, the friendly name disappear, soon after I hit apply button.
    So far I have done the following
    disjoin/rejoin - same result
    disjoin >delete AD account > Rejoin - same result
    I confirm that I have see the new server name in AD. DNS is OK too. Could find anything (i think) related to this problem.
    I can see the following errors
    1. The server {9BA05972-F6A8-11CF-A442-00A0C90A8F39} did not register with DCOM within the required timeout. EVENT ID 10010
    2. The processing of Group Policy failed. Windows could not determine if
    the user and computer accounts are in the same forest. Ensure the user
    domain name matches the name of a trusted domain that resides in the
    same forest as the computer account. . Event ID 1110
    3. Netloon server could not add the autZ RPC interface. The service
    was terminated. the following error occured. " Not enough sesources are
    available to compete this operation  Event id 5820
    4. The UAC file Virtulatization service failed to start due to the
    following error: This driver has been blocked from loading.Event ID 7000
    I have not deleted the computer account in the second time. Then
    rejoin but this time i didn't get the message but the issue with SID
    showing instead  of friendly name is still there. These are related , i
    can see
    I can see the server in the domain and DNS also updated.
    When I run GPReuslt, it shows
    Data collected on: 20/03/2014 3:17:09 PM
    Summary
    During last computer policy refresh on
    20/03/2014 3:00:29 PM
    <v:group alt="Error" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:oval
    class="vmlimage" coordsize="21600,21600" fillcolor="red"
    strokecolor="red"
    style="width:100px;height:100px;"></v:oval><v:line
    class="vmlimage" from="25,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="75,75"></v:line><v:line
    class="vmlimage" from="75,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="25,75"></v:line></v:group>
    1
    Errors Detected
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    A fast link was detected More information...
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    The following GPOs have special alerts
    GPO
    Name
    Alert
    Default Policy
    AD / SYSVOL Version
    Mismatch
    During last user policy refresh on
    20/03/2014 3:00:29 PM
    <v:group alt="Error" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:oval
    class="vmlimage" coordsize="21600,21600" fillcolor="red"
    strokecolor="red"
    style="width:100px;height:100px;"></v:oval><v:line
    class="vmlimage" from="25,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="75,75"></v:line><v:line
    class="vmlimage" from="75,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="25,75"></v:line></v:group>
    1
    Errors Detected
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    A fast link was detected More information...
    Please help
    I feel like, something is blocking the user-friendly name to display in that server. I could be wrong.
    I have also noticed that Netlogon service is not running. Try to run, it gives error Error 1721: Not enough resources are available to complete this operation.
    please help.

    Hi,
    Would you please tell us that are all user names displayed as SIDs, or only some of them after you renamed the server?
    Here are some related links below I suggest you refer to:
    Event ID 1110 — Group Policy Preprocessing (Active Directory)
    http://technet.microsoft.com/en-us/library/cc727342(v=WS.10).aspx
    Error Message:
    http://technet.microsoft.com/en-us/library/cc940521.aspx
    "AD / SYSVOL version mismatch" message is displayed unexpectedly in the Group Policy Results report in Windows
    http://support.microsoft.com/kb/2866345
    Best Regards,
    Amy Wang

  • How to check that concrete object is on the scene?

    Hi
    I wonder how can i check that concrete object is on the scene for example:
    var sprite1:Sprite = new SPrite();
    stage.addChild(sprite1);
    if(?????)
        //do something with sprite1
    else
         //add sprite1 to display list and do something with it
    Is there any property or method to check this?

    If you mean that the object exists, you can try...
    if(sprite1)
        trace("it exists");
    else
         trace("it's not here");
    otherwise, if you mean you want to know if it's on the display list, you need to go thru the display list to see if it's in there...
    var child:DisplayObject;
    var spriteFound:Boolean = false;
    for (var i:uint=0; i < stage.numChildren; i++)
    child = stage.getChildAt(i);
    if(child == sprite1){
       spriteFound = true;
    if(spriteFound){
    trace("it's on display list");
    } else {
    trace("it's not here");

  • How to check if Message already exists in the queue and if message is processing currently

    Hi everyone
    I am new to Azure and worked on adding messages to the queue through workerrole1. Worker role 2 pulls them out from queue and processing them and de-queing them.
    Worker role1 runs method gets called after every 10 seconds and puts messages in queue
    CloudQueueMessage
    message = newCloudQueueMessage(oAzureWorker.WorkerInstanceOf
    + "_"+ oAzureWorker.AgentId.ToString()
    + "|"+ ExecutionId.ToString());
                                    queue.AddMessage(message);
    Worker role2 runs method gets called after every 10 seconds too and checks the queue like this
    foreach
    (CloudQueueMessagemessage
    inqueue.GetMessages(20,
    TimeSpan.FromMinutes(5)))
    // Process all (20) messages in less than 5 minutes, deleting each message after processing.
    // Process message
    queue.DeleteMessage(message);
    Following are my questions
    1) How do I check in worker role1 if the message is already in queue, Because I don't want to queue it back again if its not yet processed and is in the queue already
    2) How do I check in worker role1 if the message is currently processing. Because I don't want to queue it back again.
    3) How do I make sure that ALL the messages get processed in the order they are inserted. I know Queue is FIFO, but I know if the message gets delayed in processing another instance can pick it up, even if it gets picked up by another instance, I want to
    make sure that the order remains.
    Right now the instances of both these worker roles are 1, in the future when we increase them, I don't want them to queue the same messages multiple times or queue them if the message is already in process mode.

    Hi Sarah,
    I agree to the Frank's suggestion. Why you need to burden the worker role 1 to check if the message really sits on the queue or not? You can do this simply in your code before pushing it on queue instead querying queue.
    All you need to do on worker role 1 is - push the message on the queue and forget as the entire queue design in azure is designed from asynchronous processing.
    About worker role 2 - Use the GetMessage method which hides retrieved message's from other clients and hence makes sure that only one client is processing it at a time. If processing is successful - delete the message. if it is not - the message will be
    visible anyways after the mentioned time provided in the GetMessage method.
    I agree that when you will increase number of instances of your worker role 1 which might insert duplicates in the queue - in that case - you might need to introduce the shared entity (like database) and let all instances communicate through it to avoid
    the duplication of messages on queue. 
    Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale

  • How to check an item of a selectManyListBox the first time it is rendered?

    Hello,
    I want to check automatically check an item corresponding to a specific value when the selectManyListBox is rendered on the page for the first time.
    To do this I think I will have to bind the component to some viewScopeBean and iterate over all the item values, and check it when the condition is true.
    How can I do this, is there any example?

    Can you think of adding a transient boolean attribute to your VO that will store the value of your checkboxes based on whatever condition you want? If yes this demo may be of some help.
    http://oracleadfhowto.blogspot.in/2012/02/many-to-many-association-using-multi.html

  • How to check if user is part of the specific OU in Active Directory

    Hi :
    We are trying to check if user is part of the specific OU or not , to do this I am invoking "Get Object Property Value"
    since if user is part of that OU in that case it should be able to get that property .
    However this activity is failing and not able to search for any proeprty , below is the snapshot of workflow which
    I have created for this , I am logging to cisco.com domain for this .

    Hi Anil
    You can run the "Get User Distinguished Name" action. This uses the login CISCO\username in your case to return the distinguished name which you are inputting including its OU.
    You could then run the get object property with the input LDAP path being the results from the Distinguished Name.
    Regards,
    Matt

  • How to check if a constraint existed in the table and drop it?

    Hi all,
    I want to drop a constraint from a table. I do not know if this constraint already existed in the table. So I want to check if this exists first.
    Below is my query:
    DECLARE
    itemExists NUMBER;
    BEGIN
         itemExists := 0;
    SELECT COUNT(CONSTRAINT_NAME) INTO itemExists
    FROM ALL_CONSTRAINTS
    WHERE UPPER(CONSTRAINT_NAME) = UPPER('my_constraint');
    IF itemExists > 0 THEN
    ALTER TABLE my_table DROP CONSTRAINT my_constraint;
    END IF;
    END;
    Here is the error I got when I executed the above query:
    ORA-06550: line 11, column 5: PLS-00103: Encountered the symbol "ALTER" when expecting one of the following: ( begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << continue close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe purge
    Please help me with this!
    Greatly appreciate!
    Khoi Le

    Yes, I also tried to put the pl-sql in the Execute Immediate. However, the error still remains
    EXECUTE IMMEDIATE 'DECLARE
    itemExists NUMBER;
    BEGIN
         itemExists := 0;
    SELECT COUNT(CONSTRAINT_NAME) INTO itemExists
    FROM ALL_CONSTRAINTS
    WHERE UPPER(CONSTRAINT_NAME) = UPPER('my_constraint');
    IF itemExists > 0 THEN
    ALTER TABLE my_table DROP CONSTRAINT my_constraint;
    END IF;
    END';
    I execute the above code via running the batch file.
    Here is the error after I ran the batch file:
    ORA-06550: line 11, column 5:
    PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:
    ( begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    continue close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe purge
    The symbol "lock was inserted before "ALTER" to continue.
    ORA-06550: line 11, column 53:
    PLS-00103: Encountered the symbol "DROP" when expecting one of the following:
    . , @ in <an identifier>
    <a double-quoted delimited-identifier> partition subpartition
    ORA-06512: at line 2117
    I can not manually drop it. I need to do this via running an update script file.
    Is there a different way to accomplish this?
    Thank you very much!

  • How to check which RFCs causing issues in the system and RFC response times

    Hi,
    We have an issue with the RFC response times in CRM and need investigstion. We need to know which Which RFCs causing issues and how we can solve the problems.
    Regards

    Hi,
    chek the below code
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
    EXPORTING
    FILE = W_FILENAME
    RECEIVING
    RESULT = W_RESULT
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    WRONG_PARAMETER = 3
    NOT_SUPPORTED_BY_GUI = 4
    others = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-* MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF W_RESULT IS INITIAL.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
    EXPORTING
    DIRECTORY = W_FILENAME
    RECEIVING
    RESULT = W_RESULT
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    WRONG_PARAMETER = 3
    NOT_SUPPORTED_BY_GUI = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    ENDIF.
    ENDIF.
    IF W_RESULT = 'X'.
    RC = '1'.
    ELSE.
    RC = '0'.
    ENDIF.
    reward if helpful.
    Regards,
    nagaraj

  • How to check a query element based on the technical name of a query builde?

    We often see, e.g., 401OQ2EEM5EJH4GQ5N2HFNE7P as a query element of a query builder.  How to know what kind of InfoObj. or R2R link it would be base on the long technical name?  We remember there is a table to look these up, what's the table name and how to look for it's description name?
    Thanks

    hi Ari,
    The table you recommend seems to only work for Report to Report link, but not for query element, is there any other table that we can find which InfoObj. is used for this long technical name in query?
    Thanks and we have given you rewards points.

  • How to check data sent by XI in the SAP system?

    Hi All,
    I have a File to Proxy scenario. I have generated and activated the proxy. The scenario got executed successfully.
    Now, how can I check the data being sent by XI in the SAP system? Kindly help.
    Thanks,
    Karthik

    Hi,
    If u want to check in XI system as said by experts you can check in SXMB_MONI transcation(Check for chequred flag:Sucess).If not you need to see the error message and troubleshoot.
    if the message is sucess in XI,then goto your R/3 system.
    you can check SXMB_MONI in R/3 system.Tis is the message before going to proxy.
    Then as experts have already pointed out you must be knowing which tables are getting updated.
    check in those tables for the updated data.
    otherwise you need to debug proxy,
    Plz keep the thread updated.
    thanks and regards
    parvez

  • How to check if a user exists in the system ?

    Dear Gurus,
    I want to check whether a user ID exists in the system after logon by using VBA. If the user ID exists, then I will update the user's information with external data by using the method user.change.
    When running below codes, error occurs and error msg is: "The persistent key for an business object instance of type USER has not been set. Cannot invoke method EXISTENCECHECK"
    How can I do to check the user ID existence ?
    Set oUser = oBAPICtrl.GetSapObject("user")
    oUser.ExistenceCheck "MyUserID", return:=oReturn
    Thanks and Regards,
    Bao Yan

    Mickey,
    I'm afraid I never did get this to work properly. However, in the way of all bad/good (delete as appropriate) programmers eveywhere I worked around this problem. I was using this code in Banner.asp to change the view based on the user group so if a given session variable was set a user would see a different view. It works fine with no slow down on the page and you should be able to adapt it to what you need.
    Hope this helps.
    Neville
    Note: Application variables are ones I have defined in config.xml.
    Code follows:
    <!--START:INC\common\getgroup.asp-->
    <% 'NAH 29/03/2004 ' 'This check the to see if the current user has the group in their membership that has been defined as the group to provide an alternative view of the portal.' 'The group variable is defined in the config.xml as "ALTVIEWGROUP"'
    'Do not do this is we have already matched the group'If Session("groupMatch") <> "1" and Session("groupMatch") <> "2" then
    Dim pGroup
    pGroup = Application("ALTVIEWGROUP") Set Session("groupMatch") = nothing
    Dim Plumtree
    Set Plumtree = Server.CreateObject("ADODB.Recordset") Plumtree.ActiveConnection = "Driver={SQL Server};Server=" & Application("DBSERVER") & ";Database=" & Application("PLUMTREEDB") & ";" Plumtree.Source = "SELECT GROUPID FROM " & Application("PLUMTREEDBUSER") & ".PTGROUPMEMBERSHIP WHERE (USERID = " & strUserID & ") AND (GROUPID = " & pGroup & ")" Plumtree.CursorType = 3 Plumtree.CursorLocation = 2 Plumtree.LockType = 1 Plumtree.Open()
    'If there are records we should have a match otherwise set the session varible to no match.' If Plumtree.EOF then Session("groupMatch") = "2" Else 'By getting here the user should have the matching group but complete one final check to make sure' If cInt(Plumtree.Fields.Item("GROUPID").Value) = cInt(pGroup) then Session("groupMatch") = "1" Else Session("groupMatch") = "2" End If
    End If
    Plumtree.Close() Set Plumtree = Nothing
    End if%><!--END:INC\common\getgroup.asp-->

  • How to check radio button as default on the basis of database value?

    Hi Friends,
    I have one jsp, in which I am having a field of radio button, which have two boolean values of 0 & 1. I want to check the radio button as default on the basis of database value, kindly help me out.
    Thanks a lot in advance. Please help me out.

    probably, when using struts you should do all your calculations in action class it self
    Eg. in jsp
    <html:radio name="myForm" property="myProperty" value="0">0</html:radio>
    <html:radio name="myForm" property="myProperty" value="1">1</html:radio>
    in Action class
    if (databaseValue == 0)myForm.setMyProperty(0);
    else if (databaseValue == 1)myForm.setMyProperty(1);
    rest will follow
    whatever be the value it will come selected

  • Macbook pro seems to be starting up slowly and even shutting down much slower?  Any ideas on how to check to see what may be the issue?  Appreciate any thoughts.  Thanks

    Seems my MBP is starting to start up much slower and shut down a little slower.  How do i check to see why this is happening?

    Seems my MBP is starting to start up much slower and shut down a little slower.  How do i check to see why this is happening?

Maybe you are looking for