How to join the AP to the WLC

Hi All,
I am new to Cisco wireless solution and would like to ask how to add the AP to the WLC properly. All Cisco 1041 and Cisco 2500 WLC are new. I connect those AP and WLC to the switch without any VLAN tag and the AP can gain the IP address from our DHCP correctly. However, the AP 1041 could not join the WLC successfully. Here is the log. I really do not have any idea about that and hope someone can help. Many thanks.
WLC: Cisco 2500
IP Address: 192.168.1.225
version: 7.4.100.0
AP: 1041
IP Address (DHCP): 192.168.1.195
version: 15.2(2)JB
I also checked the following item.
- WLC already enable Accept Manufactured Installed Certificate (MIC) in WLC -> Security -> AP Policy
- WLC can ping AP and vice versa
- WLC has 5 AP license
- All configuration are default setting
- Tried to issued join command in AP manually but no luck "lwapp ap controller ip add 192.168.1.225"
AP 1041 Log
*May 16 14:02:41.145: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to administratively down*May 16 14:02:41.180: %LINK-6-UPDOWN: Interface Dot11Radio0, changed state to up*May 16 14:02:42.145: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio0, changed state to down*May 16 14:02:42.172: %LINK-6-UPDOWN: Interface Dot11Radio0, changed state to down*May 16 14:02:42.176: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to reset*May 16 14:02:43.197: %LINK-6-UPDOWN: Interface Dot11Radio0, changed state to up*May 16 14:02:44.197: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio0, changed state to up*May 16 14:02:51.178: %CAPWAP-3-ERRORLOG: Go join a capwap controller *May 16 14:02:52.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 192.168.1.225 peer_port: 5246*May 16 14:02:52.905: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 192.168.1.225 peer_port: 5246*May 16 14:02:52.906: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.225
*May 16 14:02:52.908: %CAPWAP-3-ERRORLOG: Invalid event 10 & state 5 combination.*May 16 14:02:52.908: %CAPWAP-3-ERRORLOG: CAPWAP SM handler: Failed to process message type 10 state 5.*May 16 14:02:52.909: %CAPWAP-3-ERRORLOG: Failed to handle capwap control message from controller*May 16 14:02:52.909: %CAPWAP-3-ERRORLOG: Failed to process encrypted capwap packet from 192.168.1.225., 1)16 14:03:11.059: %CAPWAP-3-ERRORLOG: Retransmission count for packet exceeded max(UNKNOWN_MESSAGE_TYPE (5)*May 16 14:03:11.059: %CAPWAP-3-ERRORLOG: GOING BACK TO DISCOVER MODE*May 16 14:03:11.060: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192.168.1.225:5246*May 16 14:03:11.111: %LWAPP-3-CLIENTERRORLOG: LWAPP LED Init: incorrect led state 255*May 16 14:03:11.111: bsnInitRcbSlot: slot 1 has NO radio*May 16 14:03:11.132: %CAPWAP-3-ERRORLOG: Binding Config Initialization failed for binding 1*May 16 14:03:11.138: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to administratively down*May 16 14:03:11.174: %LINK-6-UPDOWN: Interface Dot11Radio0, changed state to up*May 16 14:03:12.138: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio0, changed state to down*May 16 14:03:12.165: %LINK-6-UPDOWN: Interface Dot11Radio0, changed state to down*May 16 14:03:12.170: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to reset*May 16 14:03:13.190: %LINK-6-UPDOWN: Interface Dot11Radio0, changed state to up*May 16 14:03:14.190: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio0, changed state to up
APbc16.65d6.7e4b#show ip int briefInterface                  IP-Address      OK? Method Status                ProtocolBVI1                       192.168.1.195   YES DHCP   up                    up      Dot11Radio0                unassigned      NO  unset  up                    up      GigabitEthernet0           unassigned      NO  unset  up                    up      GigabitEthernet0.1         unassigned      YES unset  up                    up     
WLC 2500
(Cisco Controller) >show sysinfoManufacturer's Name.............................. Cisco Systems Inc.Product Name..................................... Cisco ControllerProduct Version.................................. 7.4.100.0Bootloader Version............................... 1.0.16Field Recovery Image Version..................... 1.0.0Firmware Version................................. PIC 16.0Build Type....................................... DATA + WPSSystem Name...................................... S_HK_AC_CT2504_1System Location.................................. System Contact................................... System ObjectID.................................. 1.3.6.1.4.1.9.1.1279IP Address....................................... 203.85.90.225Last Reset....................................... Power on resetSystem Up Time................................... 1 days 0 hrs 29 mins 1 secsSystem Timezone Location......................... System Stats Realtime Interval................... 5System Stats Normal Interval..................... 180
(Cisco Controller) >show ap join stats summary allNumber of APs.............................................. 3 Base Mac             AP EthernetMac       AP Name                 IP Address         Statusbc:16:65:d6:7e:40    bc:16:65:d6:7e:40    APbc16.65d6.7e4b        192.168.1.195      Not Joinedbc:16:65:d6:7e:4b    N A                  N A                     192.168.1.195      Not Joinedf4:1f:c2:d0:bb:20    bc:16:65:d6:7e:4b    APbc16.65d6.7e4b        192.168.1.195      Not Joined
(Cisco Controller) >show interface summary Number of Interfaces.......................... 3Interface Name                   Port Vlan Id  IP Address      Type    Ap Mgr Guest-------------------------------- ---- -------- --------------- ------- ------ -----management                       1    untagged 192.168.1.225   Static  Yes    No   virtual                          N/A  N/A      1.1.1.1         Static  No     No  
Rgds,
Jacky

leolaohoo wrote:Something is missing from the output to the command "sh sysinfo".  What country code did you enable? On the AP, post the output to the command "sh version" and "sh inventory".
Hi Leolaohoo, thanks for your prompt reply. Please it below. I am using Hong Kong as the country code in WLC. Thanks.
WLC
(Cisco Controller) >show sysinfoManufacturer's Name.............................. Cisco Systems Inc.Product Name..................................... Cisco ControllerProduct Version.................................. 7.4.100.0Bootloader Version............................... 1.0.16Field Recovery Image Version..................... 1.0.0Firmware Version................................. PIC 16.0Build Type....................................... DATA + WPSSystem Name...................................... S_HK_AC_CT2504_1System Location.................................. System Contact................................... System ObjectID.................................. 1.3.6.1.4.1.9.1.1279IP Address....................................... 192.168.1.225Last Reset....................................... Power on resetSystem Up Time................................... 1 days 1 hrs 15 mins 49 secsSystem Timezone Location......................... System Stats Realtime Interval................... 5System Stats Normal Interval..................... 180--More-- or (q)uitConfigured Country............................... HK  - Hong KongOperating Environment............................ Commercial (0 to 40 C)Internal Temp Alarm Limits....................... 0 to 65 CInternal Temperature............................. +31 CExternal Temperature............................. +36 CFan Status....................................... 4100 rpmState of 802.11b Network......................... DisabledState of 802.11a Network......................... DisabledNumber of WLANs.................................. 2Number of Active Clients......................... 0Memory Current Usage............................. UnknownMemory Average Usage............................. UnknownCPU Current Usage................................ UnknownCPU Average Usage................................ UnknownBurned-in MAC Address............................ F0:29:29:88:98:20Maximum number of APs supported.................. 5
AP
APbc16.65d6.7e4b#show verCisco IOS Software, C1040 Software (C1140-K9W8-M), Version 15.2(2)JB, RELEASE SOFTWARE (fc1)Technical Support: http://www.cisco.com/techsupportCopyright (c) 1986-2012 by Cisco Systems, Inc.Compiled Tue 11-Dec-12 04:03 by prod_rel_teamROM: Bootstrap program is C1040 boot loaderBOOTLDR: C1040 Boot Loader (C1140-BOOT-M) Version 12.4(23c)JA6, RELEASE SOFTWARE (fc1)APbc16.65d6.7e4b uptime is 20 hours, 32 minutesSystem returned to ROM by reloadSystem image file is "flash:/c1140-k9w8-mx.152-2.JB/c1140-k9w8-mx.152-2.JB"Last reload reason: This product contains cryptographic features and is subject to UnitedStates and local country laws governing import, export, transfer anduse. Delivery of Cisco cryptographic products does not implythird-party authority to import, export, distribute or use encryption.Importers, exporters, distributors and users are responsible forcompliance with U.S. and local country laws. By using this product youagree to comply with applicable laws and regulations. If you are unableto comply with U.S. and local laws, return this product immediately.A summary of U.S. laws governing Cisco cryptographic products may be found at:http://www.cisco.com/wwl/export/crypto/tool/stqrg.htmlIf you require further assistance please contact us by sending email [email protected] AIR-LAP1041N-E-K9    (PowerPC405ex) processor (revision B0) with 81910K/49152K bytes of memory.Processor board ID FGL1718S4RMPowerPC405ex CPU at 333Mhz, revision number 0x147ELast reset from reloadLWAPP image version 7.4.100.01 Gigabit Ethernet interface1 802.11 Radio32K bytes of flash-simulated non-volatile configuration memory.Base ethernet MAC Address: BC:16:65:D6:7E:4BPart Number                          : 73-14034-06PCA Assembly Number                  : 800-34273-07PCA Revision Number                  : A0PCB Serial Number                    : FOC17160EPLTop Assembly Part Number             : 800-34284-05Top Assembly Serial Number           : FGL1718S4RMTop Revision Number                  : A0Product/Model Number                 : AIR-LAP1041N-E-K9   Configuration register is 0xF
APbc16.65d6.7e4b#show inventoryNAME: "AP1040", DESCR: "Cisco Aironet 1040 Series (IEEE 802.11n) Access Point"PID: AIR-LAP1041N-E-K9 , VID: V05, SN: FGL1718S4RM
Thanks and Best Regards,
Jacky

Similar Messages

  • How to  Join two tables using the Inner Join

    Hi All,
    I have two tables i.e table1 and table2 as i have created two otds and my present requirement is to join this two tables and get the results and using this i need to do some logic and update another table3.
    can some one help me out how to go for the above req.
    Thanks in Advance
    Srikanth

    The best efficient way to use inner join is create two input otds,use there otd's in create a collaboration usinf etl.
    after selecting two input otd's create a inner join statement and map it to out put otd.
    while using the etl the performance of the over all integration is increased 20 time of the normal integration.
    Hopes this will helps,,
    Thanks,
    Papa Rao.

  • How to join tables to show the Ship-to party of the SO...

    To output a list not only show the Ship-to Party of the SO header, but also  show the Ship-to party for every item of the SO.
    Thanks!!!
    How many tables coule get this done??
    Thanks.

    Hi Hoo Laa,
    Use Partner function WE as Ship to party ( While selecting the data use WE,do not use SH)
    Check the below program :
    REPORT Zxyz.
    tables : vbak,
             vbap,
             vbpa.
    data : begin of i_final occurs 0,
           vbeln like vbak-vbeln,
           vkorg like vbak-vkorg,
          kunnr like vbak-kunnr," Sold to party
           posnr  like vbap-posnr,
           matnr  like vbap-matnr,
           kwmeng like  vbap-kwmeng,
           netpr like vbap-netpr,
           end of i_final.
    data : begin of i_output occurs 0,
           vbeln like vbak-vbeln,
           vkorg like vbak-vkorg,
           kunnr like vbpa-kunnr," Sold to party
           posnr  like vbap-posnr,
           matnr  like vbap-matnr,
           kwmeng like  vbap-kwmeng,
           netpr like vbap-netpr,
           end of i_output.
    start-of-selection.
    select avbeln avkorg
           bposnr bmatnr bkwmeng bnetpr
           into table i_final up to 100 rows
           from vbak as a inner join vbap as b on bvbeln = avbeln.
    loop at i_final.
    select single * from vbpa into vbpa
                         where vbeln = i_final-vbeln
                         and   parvw = 'WE'. -> Partner function
    if sy-subrc eq 0.
    i_output-kunnr = vbpa-kunnr.
    endif.
    i_output-vbeln = i_final-vbeln.
    i_output-vkorg = i_final-vkorg.
    i_output-posnr = i_final-posnr.
    i_output-matnr = i_final-matnr.
    i_output-kwmeng = i_final-kwmeng.
    i_output-netpr = i_final-netpr.
    append i_output.
    endloop.
    end-of-selection.
    loop at i_output.
    write:/ i_output-vbeln,i_output-vkorg,i_output-kunnr,i_output-posnr,
            i_output-matnr,i_output-kwmeng,i_output-netpr.
    endloop.
    Thanks
    Seshu

  • How do I effectively join the Macs to the AD?

    Hi. First, I must qualify that I am NOT a network individual. Some of the research I've done, I've managed to follow, but I don't have the technical know-how to fully understand it all. I desparately need help, please.
    I work in a medium-sized environment, about 50 PCs and we employ Windows Server 2003. I've been charged with making 10 or so Macs work in Active Directory. Our Mac users constantly run into expiring netword passwords every 30 days (extending this is not an option because of the nature of the work).
    How do I effectively join the Macs to the AD and allow changes to network passwords from the Mac?  So far, for every Mac users, I've used SMB to connect to server files/folders. But when the users' password expires, they are 1) not notified that their passwords are expiring and 2) are not able to change their passwords from their Macs when their passwords expires. I've tried binding my Mac to the AD and used a free software called ADMon to monitor my own expiring network password.  And that's proving useless because it's monitoring the local password for the Mac instead of the network password. 
    Mac users are mostly on OS Lion, one Mac user on Snow Leopard.
    I would really appreciate any help/advice you can provide.
    Thanks!

    AD is still broken with Lion as at 10.7.2. May want to read this thread to try the workarounds, mainly Page 5, while Apple sort it out.
    https://discussions.apple.com/thread/3198558?start=60&tstart=0

  • How do I join two tables in the same database and load the result into a destination table in a SSIS package

    Hi,
    I have a query that joins two tables in the same database, the result needs to be loaded in a destination DB table.  How do I do this in SSIS package?
    thank you !
    Thank You Warmest Fanny Pied

    Please take a look at these links related to your query.
    http://stackoverflow.com/questions/5145637/querying-data-by-joining-two-tables-in-two-database-on-different-servers
    http://stackoverflow.com/questions/7037228/joining-two-tables-together-in-one-database

  • TS3991 I organazied my contacts by the address of my tenants. I just joined to Icloud and I am not able to find my tenants in the directory in the computer at all. I could search when I am using my phone but they do not show at first.how can correct this?

    I am a landlord and I organazied my contacts by the address of my tenants. I just joined to Icloud and I am not able to find my tenants in the directory in the computer at all. I could search when I am using my phone but they do not show at first.how can correct this? as an example 37 31 1 and when i type this nothing is showing.

    I am a landlord and I organazied my contacts by the address of my tenants. I just joined to Icloud and I am not able to find my tenants in the directory in the computer at all. I could search when I am using my phone but they do not show at first.how can correct this? as an example 37 31 1 and when i type this nothing is showing.

  • How can I edit imported audio track? After selecting and deleting region and joining remaining parts, it keeps playing the track with the deleted part! What am I doing wrong?

    How can I edit imported audio track? After selecting and deleting region, and joining remaining parts, it keeps playing the track with the deleted region!
    What am I doing wrong?

    After selecting and deleting region, and joining remaining parts, it keeps playing the track with the deleted region!
    What am I doing wrong?
    How exactly are you doing this?
    When I cut out a part of an audio region, then drag the remaining parts together, so they are touching, the track will skip the cut out section when playing the file.  Also, if I select the remaining parts of the region and use the command "Edit > join regions". This will create a new audio file with the cut out part deleted.
    You should see this prompt, when you are joining the regions:

  • Hi, I am trying to download IOS7 to my ipad. The programme has locked at the 'Choose a Wif-Fi network' page, a box says 'joining other network' but the page is greyed out and can't move from it.  How can I clear this screen and finish the download. Thanks

    Hi, I am trying to download IOS7 (not sure if it's 1 or 2) to my ipad. The programme has locked at the 'Choose a Wif-Fi network' page, a box says 'joining other network' but the page is greyed out and can't move from it.  How can I clear this screen and finish the download. Thanks

    Hello Den53,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430?viewlocale=en_US
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    After the device has turned off, press and hold the Sleep/Wake button until the Apple logo appears.
    Best of luck,
    Mario

  • How to use Over the Air QoS in WLC 2106

    Hi all,
    My company is using a WLC2106 with 4 APs directly connected to the port 4 - 8. With port one to management/data VLAN. Two SSIDs "Manager" and "Staff" using WPA + TKIP were created and both bridged to the management interface (assigned to port 1 untagged) of WLC. WLC port 1 is connected to C2950 FE port. Our network do not have any QoS.
    I've changed the Maximum RF usage per AP to 10% in bronze and 10 for the queue length while keeping 100% and 50 for Max RF and queue length unchanged for silver profile in hope that Staff SSID will not use more than 10% of the RF channel (i.e. ~5Mbps) per AP
    I tested the settings with four notebooks with staff:manager proportion 1:3 and 3:1 with only one AP on. However, none of which gives the expected result -- Staff share at most 10% (~5Mbps) of RF channel while manager share the remaining
    It would be grateful if you could tell me if this can be achieved by solely Over the Air QoS of the WLC under our network? If not, how can be achieve this by modifying / adding additional gears.
    Thanks.

    I did find this, but doesn't explain much.
    Q. What is meant by Over the Air QoS on a controller?
    A. Over the Air QoS is a QoS parameter defined in a controller. It varies based on the user class.
    In a Cisco Unified Wireless Networking environment, users on a wireless LAN can be categorized and assigned to any of these QoS profiles:
    Platinum
    Gold
    Silver
    Bronze
    These profiles can be found under the Controller > QoS profiles page.
    For each of these profiles, Cisco has the configurable Over the Air QoS parameter, which is found under the edit page of each QoS profile. This Over the Air QoS specifies two different settings for the particular class of user (QoS profile):
    Maximum radio frequency (RF) usage (per access point [AP])-This is a maximum percentage of air bandwidth given to a user class. For example, if you have a network where the guest QoS profile has the max bw limitation for bronze set to 10% even if a single bronze user is using the AP, it can never receive more than 10% of the total available bandwidth.
    Queue Depth-This is the depth of the queue for the particular class. It causes packets greater than the value to be dropped at the AP.
    Note: Only the 1000 series supports the maximum RF usage setting.

  • How to join a client PC to WS2012E R2 that's already a member of another enterprise domain using the skip domain join registry entry?

    In WSE12 R1 you can install the connector application on a Windows 7 PC that has already been joined to a corporate domain using the skip domain registry key:
    reg add "HKLM\SOFTWARE\Microsoft\Windows Server\ClientDeployment" /v SkipDomainJoin /t REG_DWORD /d 1
    Upon doing so, the client PC is then able to perform client backups to the WSE12 R1 server but remains a member of the original corporate domain.  This is no longer possible when using this registry key when installing the Windows Server 2012 Essentials
    R2 connector
    Is anyone aware of a way to install the WSE12 R2 connector and skip domain join without first leaving the corporate domain? 
    I am avoiding moving to WSE12 R2 until I can figure out a way to accomplish this.

    I noticed this was incorrectly marked as an ANSWER. Although it wasn't a resolution, I recognize the connector install behavior is different in R1 vs R2. If it would be possible to ask the developers to include the following functionality in a future
    Essentials R2 Update, we'd appreciate it. During client connector install, give user the option via radio button: 1.) install connector join domain, enable client PC backup 2.) install connector, join domain only, no client PC backup 3.) install connector,
    do not join domain, enable client PC backup Option #3 would satisfy this request and negate the need for unauthorized registry hacks. Thank you.
    Great discussion here, and glad things seem to have changed for the better with R2.
    Spot on with those suggestions, miles267!
    Back in Dec 2013, I wrote about my fairly simple registry tweak done at just the right spot during the client connector install, still seems to work like a charm
    (as of Dec 12 2014, ~15,000 folks read it so far):
    TinkerTry.com/connect
    which redirects to:
    http://www.tinkertry.com/how-to-make-windows-server-2012-r2-essentials-client-connector-install-behave-just-like-windows-home-server
    with a lot of (admittedly confusing) comments:
    http://www.tinkertry.com/how-to-make-windows-server-2012-r2-essentials-client-connector-install-behave-just-like-windows-home-server/#comment-1705687227
    Sincerely hoping such feedback helps encourage Microsoft to take a simple radio box checkmark request seriously. Really, it'd really help folks a lot, so they wouldn't have to feel they are trusting a "hack" which is really a simple, documented
    registry tweak, done at just the right time.
    I hope this little post here, and my article, truly helped people out!

  • How to join entity in the EJBQL?

    Dear all,
    I have written the following EJBQL:
    select o from Commitment o join o.invoiceStat i where o.companyCode = 'HKC' and o.item = 'ABCD01' and i.year = 2008
    The entity class is as follows:
    public class Commitment implements Serializable {
    @Column(name="commitment_amt",nullable = false)
    private Double commitmentAmt;
    @Id
    @Column(name="item_code",nullable = false)
    private String item;
    @Id
    @Column(name="institution_code",nullable = false)
    private String companyCode;
    @OneToMany(mappedBy = "commitment")
    private List<InvoiceStatistic> invoiceStat;
    I join the invoiceStat in the EJBQL and also I need to filter, ie. i.year = 2008,
    but maybe because of invoiceStat is a OneToMany List Object, the EJBQL didn't filter using i.year=2008.
    How could I filter the OneToMany ? Please help
    Thanks.

    What is this forum called? What languages does it focus on?
    Have you bothered to even read what stands at the top of this page and every other page in this forum?
    h2. SQL and PL/SQL
    Not Enterprise Java Beans bastardised query language called EJBQL.

  • How to join and sign in to the Adobe Education Exchange | Adobe Education Exchange | Adobe TV

    To fully take advantage of the Adobe Education Exchange, you'll want to become a member. Learn how to join and sign in to the community.
    http://adobe.ly/VW90Uc

    Hi LightwaV - the best place to get support for the Adobe Education Exchange is to go through the Help Center on the AEE - http://edex.adobe.com/help-center/. Once there you can navigate through the help items to find answers to common questions and if you're problem isn't solved, you can email the AEE support team. They will be in a better position to help you and troubleshoot your account.
    Hope this helps!

  • How to join regions without deleting notes in the right region.

    How to join regions without deleting notes in the right region?
    Every time I try to join two regions, the notes in the right region are cut, even though both regions are on the same track and are touching each other. 
    This is so frustrating. I searched on some other sites and Garageband Help section, but for some bizarre reason, I can't find any explanation of this basic topic.
    Tony

    Tony, the two Regions in your screenshot (green, yellow) are Take Regions (they have a Take number in the reft upper corner), which are Regions that contain multiple Regions and you can select any one to be the active (played) Region. You cannot merge those Regions. You have to delete the unwanted Regions inside first. click on the number, select the Region you want and then click again and select "Delete unused Takes"
    If you don't want to create Take Regions, select the "Cycle Recording" checkbox in the Preferences ➤ General Window
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • How to avoid duplicated rows using the outer join

    Hi everybody,
    I have the following query:
    select a.usr_login, b.ugp_rolename, b.ugp_display_name from
    (select usr.usr_login, usr.usr_key, usg.ugp_key from usr,usg
    where usg.usr_key = usr.usr_key
    and usr.usr_login IN ('C01015','C01208')) a,
    (select ugp.ugp_key, ugp.ugp_display_name from ugp
    where ugp.ugp_rolename LIKE 'B-%') b
    where a.ugp_key = b.ugp_key (+)
    The first query 'a' has the following result:
    usr_login <space> usr_key <space> ugp_key
    C01015 <space> 49 <space> 565
    C01015 <space> 49 <space> 683
    C01015 <space> 49 <space> 685
    C01015 <space> 49 <space> 3
    C01208 <space> 257 <space> 3
    The usr_login on table usr is the primary key, and as you can see above, for each usr_login I can find one ore more ugp_key on the table usg.
    The query 'b' gives the list of all the usr_login's roles which have the name LIKE 'B-%' (it means '*Business Roles*'), and all the respective role's key (ugp_key)
    So, when I join the query 'a' with the query 'b', I expect to find for every usr_login the respective ugp_display_name (the Business Role name).
    Because the query 'b' contains ONLY the ugp_keys of the Business Roles, when I execute the complete query, this is the result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01015 <space> null <space> null
    C01015 <space> null <space> null
    C01208 <space> null <space> null
    As you can see, with the outer join I obtain the Business Name (ugp_display_name) for each occurrence (and I have 2 rows duplicated with 'null' for the usr_login C01015); This beacuse the query 'b' doesn't have the two ugp_keys 685 and 3.
    Instead I'd like to have the following result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01208 <space> null <space> null
    deleting ONLY the duplicated rows with null, when the usr_login has already at least one ugp_display_name not null.
    For example:
    1) The usr_login 'C01015' has 2 Business Roles (with ugp_key = 565 and 683) and other 2 not-Business Roles (with ugp_key = 685 and 3) --> I want to see ONLY the 2 records related to the Business Roles
    2) The usr_login 'C01208' has only one not-Business Roles (with ugp_key = 3) --> I want to see the record related to the not- Business Role
    Practically:
    1) When a usr_login has one or more Business Roles and other not-Business Roles , I'd like to see ONLY the records about the Business Roles (not the records with 'null','null')
    2) When a usr_login doesn't have Business Roles, I'd like to see the records about the same usr_login with 'null','null'
    This, because I need to show both usr_logins: with and without Business Roles.
    Anybody has any suggestions ? Any help will be appreciated.
    Thanks in advance for any help !!
    Alex

    Hi, Alex,
    So you want to display rows from a where either
    (1) the row has a match in b, or
    (2) no iwith the same usr_login has a match.
    Here's one way to do that:
    WITH     a     AS
         SELECT  usr.usr_login, usr.usr_key, usg.ugp_key
         FROM      usr
         ,     usg
         WHERE      usg.usr_key     = usr.usr_key
         AND     usr.usr_login     IN ('C01015','C01208')
    ,     b     AS
         SELECT  ugp.ugp_key, ugp.ugp_display_name
         FROM      ugp
         WHERE     ugp.ugp_rolename     LIKE 'B-%'
    ,     got_match_cnt     AS
         SELECT     a.usr_login, b.ugp_rolename, b.ugp_display_name
         ,     b.ugp_key
         ,     COUNT (b.ugp_key) OVER (PARTITION BY  a.usr_login)     AS match_cnt
         FROM      a
         ,     b
         WHERE     a.ugp_key     = b.ugp_key (+)
    SELECT     usr_login, ugp_rolename, ugp_display_name
    FROM     got_match_cnt
    WHERE     ugp_key          IS NOT NULL     -- Condition (1)
    OR     match_cnt     = 0              -- Condition (2)
    ;If b.ugp_rolename or b.ugp_display_name can not be NULL, then you could use that just as well as b.ugp_key for testing condition (1).
    By the way, you don't need sub-queries for a and b; you can do all the joins and all the filtering (except conditions (1) and (2)) in one query, but the sub-queries aren't hurting anything. If you find the separate sub-queries easier to understand, debug and maintain, then, by all means, keep them.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • How can I refer to a value of the textfield1 into the textfield2 and set readonly textfield2, and join the value of various textfields in just one textfield multiline ?

    I am new in acroforms.
    I have a form with 5 pages, in the first page the user fill personal information, the fields are (names, addres, birtdate, ocupation,etc ) all are texboxes, I need to get the same value of every textboxes of the first page into the 2d and 3, 4 and 5 pages, I have created another textboxes in the 2, 3 .. pages with the same names in order to duplicate the value of each one, but if I make some of them readonly, every textboxes in every page are readonly...
    For that reaseon, I tried changin the name of the texboxes of the 2, 3, 4 and 5 pages to names1, names2, names3, names4, and so on for the other fields, I have written some scripts, but no lucky, because I used this line in every new textbox, as the following (for the textbox names1)
    this.getField("names").Value
    Without results, the textboxes apears in blank
    And also, in the last page I need to join some texboxes values in only one multiline textbox
    Please any advice will be welcome..
    Muchas gracias
    Rafsys

    For the information in the second text box to be the same as the first text box (i.e. - on later pages), simply give the fields the same name. The second on could be set to readonly and you could even remove the borders and such so it looked like it was just part of the page. This last trick would get around the need to combine the fields for the display as you mention. Combining the fields would have to be done with JavaScript.

Maybe you are looking for