[Solved] Cannot access non-executable directories

After I copied some folders and files from CD I had permission denied trying to access as a normal user.
So I did
sudo chown -R doctor:users folder
sudo chmod -R 777 folder
After that, the folder and files became executable.
So, in directory Music/ I had some executable folders and files.
I thought I can make it all non-executable recursively...
sudo chmod -R -x Music/
And now it's non-executable.
But wait
[doctor@doctor ~]$ cd Music/
bash: cd: Music/: Permission denied
I cannot access non executable folders?!
After I make them executable again, I can access.
[doctor@doctor ~]$ chmod -R +x Music/
[doctor@doctor ~]$ cd Music/
[doctor@doctor Music]$
wtf?
Last edited by Doctor Drive (2010-09-15 12:55:44)

Didn't get how it works though..
But a way to solve is
chmod -R 775 Music
And for files...
find ./Music/ -type f -exec chmod 664 {} \;
Though still didn't get why must folders have different permissions...
Too much to study that chmod thing...
Last edited by Doctor Drive (2010-09-15 12:55:18)

Similar Messages

  • How do i solve - cannot access web server - error message when creating a project in 4.5 with PHP

    How do i solve - cannot access web server - error message when creating a project in 4.5 with PHP

    Screenshot of how it looks when i try to show a ms access form inside a iframe:
    http://oi58.tinypic.com/2vj4ish.jpg

  • Cannot access non Airport network

    Hi all,
    I'm running a Powerbook G4, whcih connects to its home Airport wireless network with no problems. However, when I try to connect to a different non Airport wireless network I get a message saying there was a problem connecting.
    The two most recent I've tried are at a relative's house. The old router didn't let me in, it has been recently changed so I though that might solve the issue but it didn't. It's a D-Link DSL 2640R, used without problems by anyone else who visits, and my Mac can see it as a network whose signal it is receiving. The password is taped to the top of the box. I tried entering this in the password box on my Mac but was denied access. Then tried with the password in quotation marks, again denied. Looked on some forums which suggested using HEX. I translated the (eight character) password into a (sixteen character) HEX key, but since my Mac needed either a 10 or 26 character HEX key, went back to the forums and found the suggestion of preceeding the HEX key with a $, # or 0x. None of this worked either.
    I seemed to find lots of postings from people with the same kind of issue, does anyone have any further ideas please ?
    Thanks,
    Ivan

    If its lower case, it means it can see the netwoirk but can't connect. Uppercase is connected. Thanks though, it seemed to resolve itself spontaneously
    www.whatsgoodblog.com
    What's Good is your one stop site reviews about everything.
    http://www.whatsgoodblog.com/featured/how-to-install-beta-os-or-other-carrier-os-on-blackberry-with-desktop-manager-for-mac/

  • Cannot access "Configure User Directories"

    Hi Gurus
    I am getting this error " you do not have enough credentials to...." when i click on "Configure User Directories" on user management console.
    hyperion shared services ver 9.3.1.
    Could you help!!
    Thank You
    Kumar

    Hi
    I found and reported this fault on my post here...
    http://discussions.apple.com/message.jspa?threadID=1084956
    the workaround solution I found is also listed in this post in the thread
    http://discussions.apple.com/message.jspa?messageID=5145624#5145624
    Could you advise if it also solves your problem for others doing search for solution for this issue.
    PS

  • [Solved] cannot access ttys (Ctrl + Alt + F1-F7)

    When I press Ctrl + Alt + F1 I just get this error (Ctrl + Alt + F2 brings me back):
    :: Loading Initramfs
    commandline read: splashy
    commandline read: boot
    waiting 90 seconds for device /dev/disk/by-uuid/e289..[numbers]..311 ...
    ... When pressing Ctrl + Alt + F3-F7 I just get blank screen.
    Here's the output of ps a:
    [det@myhost ~]$ ps a
    PID TTY STAT TIME COMMAND
    2183 tty2 Ss+ 3:10 /usr/bin/Xorg :0 -audit 0 -auth /var/lib/gdm/:0.Xauth
    14044 pts/0 Ss 0:00 bash
    14046 pts/0 R+ 0:00 ps a
    Last edited by algorythm (2009-08-06 13:05:59)

    Ii guess that is.. . See my both (/etc/)inittab(.pacsave) files look exactly the same:
    # /etc/inittab
    # Runlevels:
    # 0 Halt
    # 1(S) Single-user
    # 2 Not used
    # 3 Multi-user
    # 4 Not used
    # 5 X11
    # 6 Reboot
    ## Only one of the following two lines can be uncommented!
    # Boot to console
    id:3:initdefault:
    # Boot to X11
    #id:5:initdefault:
    rc::sysinit:/etc/rc.sysinit
    rs:S1:wait:/etc/rc.single
    rm:2345:wait:/etc/rc.multi
    rh:06:wait:/etc/rc.shutdown
    su:S:wait:/sbin/sulogin -p
    # -8 options fixes umlauts problem on login
    c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux
    c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
    c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
    c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
    c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
    c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
    ca::ctrlaltdel:/sbin/shutdown -t3 -r now
    # Example lines for starting a login manager
    x:5:respawn:/usr/bin/xdm -nodaemon
    #x:5:respawn:/usr/sbin/gdm -nodaemon
    #x:5:respawn:/usr/bin/kdm -nodaemon
    #x:5:respawn:/usr/bin/slim >& /dev/null
    # End of file
    I guess I need to change the vc/s to ttys?
    Like this?:
    c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
    c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
    c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
    c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
    c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
    c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
    Edit: Yeah, thanks man.
    Edit 2: Later on I also edited /etc/rc.sysinit the same way
    Last edited by algorythm (2009-08-07 22:58:15)

  • [Solved] Non-root user cannot access mounted ntfs filesystem

    Hi -,
    i have a dualboot system (arch/xfce + win7) and i use a ntfs partition /dev/sda2 to store files i use with both operating systems. I added the partition to fstab and it gets mounted, but i cannot access it with my non-root user. With root it works fine...
    My fstab:
    # cat /etc/fstab
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    tmpfs /tmp tmpfs nodev,nosuid 0 0
    LABEL=home /home ext4 defaults 0 1
    LABEL=root / ext4 defaults 0 1
    LABEL=swap swap swap defaults 0 0
    /dev/sda2 /media/sda2 ntfs defaults 0 2
    Is there any option that allows all users to use the mounted device? Or how is this usually done ...
    Last edited by muzzel (2012-05-30 20:39:58)

    See: NTFS-3G for important setup information.
    My fstab line looks like:
    /dev/sdb1 /media/Win_USB ntfs-3g uid=1000,gid=users,fmask=113,dmask=0022 0 0
    This sets up some important parameters which the NTFS-3G Wiki Page covers.  Basically, "ntfs" is only a basic driver and is built into the kernel.  "ntfs-3g" is a much better, and less disk-eating, driver that you should install and use if you need the drive in Linux any more than occasionally.  My fstab line makes my user (1000) the owner and the masks lets me write and etc to it.  When you install NTFS-3G it is automatically used when you use the mount command to mount NTFS drives.  In fstab, as above, you would specify it explicitly.
    You can find your own user number by entering "id" at a terminal.

  • The process cannot access the file because it is being used by another process with Execute package task

    Hi,
    I've a master package that calls other packages with an Execute Package Task. Sometimes we have an error: "The process cannot access the file because it is being used by another process" and sometimes not. It seems random.
    We are working on a Terminal Server and the SQL Server database engine and the files are placed on another server. It seems that the errors doesn't occu when we run the packages on the server with a job. We can't log onto the windows server on this machine..
    Hennie

    I've seen this myself. On most occasions an immediate rerun would fix the issue. As stated this happens only when we try to run this from BIDs. From SQL agent job it always runs fine. 
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • ORA-22905: cannot access rows from a non-nested table item in Table func

    I am using a table function in Oracle 8.1.7.4.0. I did declare an object type and a collection type like this:
    CREATE TYPE t_obj AS OBJECT ...
    CREATE TYPE t_tab AS TABLE OF t_obj;
    My table function returns t_tab and is called like this:
    SELECT ... FROM TABLE (CAST (my_pkg.table_fnc AS t_tab)) ...
    This works pretty well as long as I run it in the same schema that owns the function and the 2 types. As soon as I run this query from another schema, I get an ORA-22905: cannot access rows from a non-nested table item error, even though I granted execute on both the types and the function to the other user and I created public synonyms for all 3 objects.
    As soon as I specify the schema name of t_tab in the cast, the query runs fine:
    SELECT ... FROM TABLE (CAST (my_pkg.table_fnc AS owner.t_tab)) ...
    I don't like to have a schema hard coded in a query, therefore I'd like to do this without the schema. Any ideas of how to get around this error?

    Richard,
    your 3 statements are correct. I'll go ahead and log a TAR.
    Both DESCs return the same output when run as the other user. And, running the table function directly in SQL*Plus (SELECT my_pkg.table_fnc FROM dual;) also returns a result and no errors. The problem has to be in the CAST function.
    Thanks for your help.

  • ORA-22905: cannot access rows from a non-nested table item

    Hi All,
    This is the overview of the query used in the package.
    select ename,empno,sal,deptno from
    (select deptno from dept) a,
    (select ename,empno,sal from emp1) b
    where empno in (select * from table (pkg1.fun1('empno')))
    and a.deptno=b.deptno
    union
    select ename,empno,sal,deptno from
    (select deptno from dept) c,
    (select ename,empno,sal from emp2) d
    where empno in (select * from table (pkg1.fun1('empno')))
    and c.deptno=d.deptno
    Here the pkg1.fun1 will convert the string ('empno') into table form. ('empno') is the input parameter to the package and is a string of emp numbers.
    compilation is successful. when this is executed the below error pops up
    "ORA-22905: cannot access rows from a non-nested table item"
    Is there any problem with the table function which i am using in this query
    could anyone guide me to the solution.
    Thanks All

    I have used
    CREATE OR REPLACE
    type tab_num as table of number;
    select * from table (cast(pkg1.fun1('empno')) as tab_num))
    This throws an error during compilation itself
    "PL/SQL: ORA-00932: inconsistent datatypes:expected number got varchar2

  • HT1527 I have windows 8.1 and cannot access itunes store even creating a new apple id. With other users on the same computer I can access itunes store. How can I solve this?

    I have windows 8.1 and cannot access itunes store even creating a new apple id. With other users on the same computer I can access itunes store. How can I solve this?

    i had the same problem before using a fresh install of Windows 8.1.  I have resolved this issue by running the program compatibility wizard.  This I did by right-clicking on the iTunes icon in the desktop, selecting Troubleshoot compatibility, waited for it to detect compatibility issues and when presented with the following options: 1.) Try recommended settings; 2.) Troubleshoot program, I chose the latter.  When asked what problems I noticed, I checked the following: "The program worked in earlier versions of Windows but won't install or run" and "The program requires additional permission"
    After that, it tired to resolve the issue, and provided the necessary settings to run iTunes.  Now it's running flawlessly.  I have Avast anti-virus installed though.
    HTH!

  • Hi All. I reluctantly upgraded to IOS 7 last night and now cannot access my home WIFI, all other non Apple devices are fine. I have reset, it will not allow me to 'forget this network', doesnt show the option. I have turned on and off

    Hi All, I reluctantly upgraded to IOS 7.1.1 on my IPAD last night , reluctant as every upgrade which promises fixes which dont impact me causes problems that do , which I fix via this community. Today I can no longer access my WIFI at home, my non Apple devices all work fine.I have tried all the online suggestions I can find for this, reset facgtory settings, it will not allow me to 'forget this network', I try to reconnect and it asks for my password which I know is correct and it says it cannot access my network. It can access an unsecured one I believe, but that is not ideal. Any fresh suggestions would be really welcome, please. Many thanks

    Thanks so much for your reply, yes I did and that has not worked either . A friend has suggested re installing upgrade, so may try that .

  • Hybrid graphics -- cannot access second GPU [SOLVED]

    I have latest Arch on my desktop, with Intel 4770k including an integrated graphics. Recently I installed a Geforce GTX 750 Ti into the desktop and want to use this hybrid GPU system. Problem is after I installed nouveau + bumblebee + bbswitch, the system cannot access the second (nVidia) GPU:
    optirun -vv glxgears
    and the output is:
    [ 41.936801] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
    [ 41.937150] [DEBUG]optirun version 3.2.1 starting...
    [ 41.937160] [DEBUG]Active configuration:
    [ 41.937162] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
    [ 41.937165] [DEBUG] X display: :8
    [ 41.937167] [DEBUG] LD_LIBRARY_PATH:
    [ 41.937169] [DEBUG] Socket path: /var/run/bumblebee.socket
    [ 41.937171] [DEBUG] Accel/display bridge: auto
    [ 41.937173] [DEBUG] VGL Compression: proxy
    [ 41.937175] [DEBUG] VGLrun extra options:
    [ 41.937177] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
    [ 41.937216] [DEBUG]Using auto-detected bridge virtualgl
    [ 41.950748] [INFO]Response: No - error: [XORG] (EE) systemd-logind: failed to get session: PID 924 does not belong to any known session
    [ 41.950767] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 924 does not belong to any known session
    [ 41.950769] [DEBUG]Socket closed.
    [ 41.950777] [ERROR]Aborting because fallback start is disabled.
    [ 41.950789] [DEBUG]Killing all remaining processes.
    I looked through several posts, but still do not quite understand how to solve this problem. Besides, there is no
    /proc/acpi/bbswitch
    file in my directory. I am sure I have installed bbswitch already.
    Thanks very much.
    Last edited by nullwax (2014-08-22 15:34:22)

    ArchAddict wrote:I am using a GT 770M and it works just fine for me. Instead of using nouveau have you tried only xf86-video-intel, nvidia, and bumblebee? Using optirun with these packages and it works for me like a charm.
    Thanks, ArchAddict. I remove nouveau things and install nvidia. Seems it works now. Quite strange, since previously there is a conflict when install official package nvidia.
    However, there is another thing right now:
    optirun -vv glxgears
    and the last part of the output becomes:
    [ 269.013157] [INFO]Response: Yes. X is active.
    [ 269.013176] [INFO]Running application using virtualgl.
    [ 269.013265] [DEBUG]Process vglrun started, PID 1292.
    /usr/bin/vglrun: line 241: exec: glxgears: not found
    [ 269.018514] [DEBUG]SIGCHILD received, but wait failed with No child processes
    [ 269.018532] [DEBUG]Socket closed.
    I am not quite familiar with graphics card things, and what does it mean by glxgears: not found? Thanks a lot.

  • When I try to import pictures from another catalog, I cannot access my RAW pictures.  I can only seem them as non supported what do I do to import?

    When I try to import pictures from another catalog, I cannot access my RAW pictures.  I can only seem them as non supported what do I do to import?

    Sorry for the long delay.  I have Windows 8.1  and using Lightroom 5.7  I have organized my unedited RAW format photos in files on my hard drive in folders in My documents/pictures.  Once I edit them I move them to another folders on a separate drive and discard the rejects.
    When trying to access my documents by selecting .File - Import from another catalog- my documents/ pictures; I see the folders, however when I select it, it says No items to match your search  When using the drop down menu on the lower right I can only see the images if I click on "all files" and when I click on the image I want to import,  it says "Lightroom cannot import this catalog; "The catalog does not appear to be a valid Lightroom catalog"
    All of this happend when I loaded a Cannon Pro 100 printer plug-in.  I tried to disable the plugin, but It is still happining and cannot access the images.

  • Oracle error ORA-22905: cannot access rows from a non-nested table item

    Oracle error ORA-22905: cannot access rows from a non-nested table item
    Creating a report using oracle plsql code .
    Getting error ;
    Oracle error ORA-22905: cannot access rows from a non-nested table item
    when I am trying to pass data in clause in pl sql proc
    basically I have a proc which takes 2 parameters(a and b)
    proc (
    P_a varchar2,
    p_b varchar2,
    OUT SYS_REFCURSOR
    culprit code which is giving me  the error and on google they say cast it but I dont know how to do it in my context
    --where  id in (
    --        SELECT * FROM THE (SELECT p_cd_common.get_table_from_string(P_a) FROM dual)
    --        union
    --        SELECT * FROM THE (SELECT p_cd_common.get_table_from_string(P_b) FROM dual)
    data sample returned from this :SELECT * FROM THE (SELECT p_cd_common.get_table_from_string(P_a) FROM dual)
    'Abc','def',
    data sample returned from this;SELECT * FROM THE (SELECT p_cd_common.get_table_from_string(P_b) FROM dual)
    'fgd','fth',
    Any answers ?
    How to pass data in clause in a better way

    Why are you creating a duplicate post? I already asked you to post p_cd_common.get_table_from_string. In particular what is function return type and where it is declared. As I already mentioned, most likely function return type is declared in the package and therefore is PL/SQL type. And TABLE operator can only work with SQL types.
    SY.

  • SP which returns error cannot access rows from a non-nested table item.

    Dear Experts
    I have an SP which gives error " cannot access rows from a non-nested table item ". But here the strange thing is, it works fine with one query. But I write union query with another table, only then it gives error.
    CREATE OR REPLACE PROCEDURE SP_MONTHLYSALESUMMARY (
    P_TRANSACTIONMONTH VARCHAR2,
    P_LEDGERID VARCHAR2,
    O_RESULTSET OUT TYPES.CURSORTYPE)
    AS
    BEGIN
    OPEN O_RESULTSET FOR
    -- POINT OF SALE
    SELECT
    L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NOT NULL
    AND T.ISCREDITTRANSACTIONMODE = 2
    THEN
    PB.TAXAMOUNT
    ELSE
    0
    END)
    EMPLOYEEDEBITCARDTAXAMOUNT,
    L.PRINTNO
    FROM POINTOFSALEBILL PB
    INNER JOIN POINTOFSALEBILLDETAIL PD
    ON PB.POINTOFSALEBILL_ID = PD.POINTOFSALEBILL_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO;
    END SP_MONTHLYSALESUMMARY;
    GET_ROWS_FROM_LIST1 is a function, which i am using to pass " IN " to oracle. There is no problem with this, since it works fine with one query
    REATE OR REPLACE FUNCTION BCLUB1868.GET_ROWS_FROM_LIST1
    (L IN LONG DEFAULT NULL, SEP IN VARCHAR2 DEFAULT ',')
    RETURN MYVARCHARTABLE1 PIPELINED
    AS
    L_POS INT := 1;
    L_NEXT INT;
    L_PART VARCHAR(500);
    BEGIN
    SELECT INSTR( L, SEP, L_POS) INTO L_NEXT FROM DUAL;
    WHILE (L_NEXT>0)
    LOOP
    SELECT SUBSTR(L, L_POS, L_NEXT - L_POS) INTO L_PART FROM DUAL;
    PIPE ROW(L_PART);
    SELECT L_NEXT + 1, INSTR( L, SEP, L_POS)
    INTO L_POS, L_NEXT FROM DUAL;
    END LOOP;
    SELECT SUBSTR(L, L_POS) INTO L_PART FROM DUAL;
    PIPE ROW(L_PART);
    RETURN;
    END;
    Request help from you all experts in the forum

    Here it is
    CREATE OR REPLACE PROCEDURE SP_GRCS (
    P_TRANSACTIONMONTH VARCHAR2,
    P_LEDGERID VARCHAR2,
    O_RESULTSET OUT TYPES.CURSORTYPE)
    AS
    BEGIN
    OPEN O_RESULTSET FOR
    -- Point of sale
    SELECT *
    FROM ( SELECT L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NULL
    AND T.ISCREDITTRANSACTIONMODE = 1
    THEN
    PB.BILLAMOUNT
    ELSE
    0
    END)
    MEMBERDEBITAMOUNT,
    L.PRINTNO
    FROM POINTOFSALEBILL PB
    INNER JOIN POINTOFSALEBILLDETAIL PD
    ON PB.POINTOFSALEBILL_ID = PD.POINTOFSALEBILL_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO
    UNION ALL
    -- Guest Registration
    SELECT L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NULL
    AND T.ISCREDITTRANSACTIONMODE = 1
    THEN
    PB.BILLAMOUNT
    ELSE
    0
    END)
    MEMBERDEBITAMOUNT,
    L.PRINTNO
    FROM GUESTREGISTRATION PB
    INNER JOIN GUESTREGISTRATIONDETAIL PD
    ON PB.GUESTREGISTRATION_ID = PD.GUESTREGISTRATION_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO)
    ORDER BY PRINTNO;
    END SP_GRCS;
    I have even tried adding L.Ledger_ID in select statement.

Maybe you are looking for

  • Wired computers unable to see printer on Airport Express...help?

    Hi all, I recently set up an Airport Extreme on our office network to offer wireless network access piggybacked on our wired router. I then purchased an Airport Express which I was planning on using as a wireless print server for our Canon i9900 for

  • Order Series key figure is considered as Time Series

    Hi Gurus, I'm adding a new Key FIgure (Order type) into a copied version of SNP Planning Area. I have assigned category and therefore category group and, applied similar settings like other KFs (Planning Area, Planning Bokk...). The thing is when goi

  • Issue check to customer

    Hi Gurus, I have a business scenario: Customer comes to store and picks up the items and pay the item.  I use F.13 to clear customer open items. When customer comes for exchange, customer returns item and pick ups another item i receive return sales

  • JMS sender adapter issue for encrypted message

    Hello Folks, We have JMS to AS2 interface facing issues when JMS sender channel read the encrypted files placed in MQ queue, messages size is increasing to almost double when it reaches PI. When sending an encrypted message from MQ to AS2, message is

  • Using Clobs As An XML Datagrid Source (extjs)

    I'm still playing around with the extjs library and have decided to try an xml-grid next. I know I can call an application process for a URL so I was thinking I'd probably use that to get the resulting XML. I also know I can create an application pro