Trouble with Package Invalidating Itself:

Hello All,
First, please let me know if this is not the place for this.
Second, I'm trying to create a generic pivot table package such that developers can call it from ColdFusion. I've implemented it by having the package generate and execute DDL (using EXECUTE IMMEDIATE) but the problem is the tables that are being created are dependencies of the package causing it to generate this error each time it is run.
ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package body "HRPAYROLL.ORA_TOOLS" has been invalidated ORA-06508: PL/SQL: could not find program unit being called ORA-06512: at line 1
It runs fine after automatic recompilation (refreshing the web page) but this won't work so well for users. Any suggestions would be greatly appreciated. I've attached the code for the package and the procedure call from CF.
Package:
CREATE OR REPLACE PACKAGE BODY ORA_TOOLS is
procedure PIVOT (
p_MAIN_DESC IN varchar2,
p_PIV_FIELD IN varchar2,
p_AGG_FUNC IN varchar2,
p_AGG_FIELD IN varchar2,
r_RESULT_SET IN OUT RESULT_SET
) is
v_PIV_FIELD varchar2(50):= p_PIV_FIELD;
v_AGG_FUNC varchar2(50):= p_AGG_FUNC;
v_AGG_FIELD varchar2(50):= p_AGG_FIELD;
v_PIV_FIELD_DT varchar2(50);
v_PIV_FIELD_SZ varchar2(50);
v_DATE date;
v_MAIN_DATA varchar2(2000):= 'create table main_data as ( ';/*Will equal p_MAIN_DESC*/
v_TABLE_NAME varchar2(50);
-- usage exec ora_tools.pivot('1','em_sex','COUNT','em_employee_id')
/* Create distinct list of values to use as piv column headings */
v_DIST_VALUES varchar2(2000):=
'create table dist_values as
select distinct nvl('||v_PIV_FIELD||',''UNKNOWN'') as piv_fields from MAIN_DATA';
/* Create pivot/aggregate tables */
v_CREATE_PIVOT varchar2(4000);
v_CREATE_AGG varchar2(4000);
v_GROUP_BY varchar2(4000);
/* Create Pivot_Table insert text */
v_INSERT_FIELDS varchar2(4000);
v_INSERT_TEXT varchar2(4000);
v_PIVOT_INSERT varchar2(250);
v_INSERT_FIELDS_COUNT number;
v_PIV_COL_NUM number;
v_COUNTER number := 1;
/* Drop temporary tables */
v_DROP_MAIN_DATA varchar2(50):='drop table MAIN_DATA';
v_DROP_DIST_VALUES varchar2(50):='drop table DIST_VALUES';
v_DROP_PIV_TABLE varchar2(50):='drop table PIV_TABLE';
v_DROP_AGG_TABLE varchar2(50):='drop table AGG_TABLE';
/* Create cursors */
cursor c_MAIN_DATA_FIELDS is
select COLUMN_NAME,
DATA_TYPE,
DATA_LENGTH,
DATA_PRECISION
from user_tab_columns
where TABLE_NAME='MAIN_DATA' and
upper(COLUMN_NAME) != upper(v_PIV_FIELD) and
upper(COLUMN_NAME) != upper(v_AGG_FIELD);
v_MAIN_DATA_FIELDS c_MAIN_DATA_FIELDS%rowtype;
cursor c_PIVOT_FIELDS is
select nvl(PIV_FIELDS,'UNKNOWN') as PIV_FIELDS from DIST_VALUES;
v_PIVOT_FIELDS c_PIVOT_FIELDS%rowtype;
cursor c_TRANSFORM_DATA is
select * from AGG_TABLE;
v_TRANSFORM_DATA c_TRANSFORM_DATA%rowtype;
cursor c_GET_TABLE_NAME is
select table_name from user_tables where table_name = v_TABLE_NAME;
v_GET_TABLE_NAME c_GET_TABLE_NAME%rowtype;
begin
/* Creates the MAIN_DATA sql */
v_MAIN_DATA := v_MAIN_DATA ||p_MAIN_DESC;
v_MAIN_DATA := v_MAIN_DATA||')';
/*Parse the statements to drop the temp tables*/
execute immediate v_DROP_MAIN_DATA;
execute immediate v_DROP_DIST_VALUES;
execute immediate v_DROP_PIV_TABLE;
execute immediate v_DROP_AGG_TABLE;
/*Parse the statement to create the temp tables*/
execute immediate v_MAIN_DATA;
execute immediate v_DIST_VALUES;
/* sets the datatype for the aggregate field in the piv_table */
if upper(v_AGG_FUNC) in ('SUM','AVG','COUNT') then
v_PIV_FIELD_DT := 'NUMBER';
v_PIV_FIELD_SZ := '10,5';
else
select data_type, data_length into v_PIV_FIELD_DT, v_PIV_FIELD_SZ
from user_tab_columns
where table_name='DIST_VALUES';
end if;
/* Add Main Data Elements */
open c_MAIN_DATA_FIELDS;
v_CREATE_PIVOT := 'create table PIV_TABLE ('; /* Create Pivot Table */
v_CREATE_AGG := 'create table AGG_TABLE as select '; /* Create Agg Table */
v_INSERT_FIELDS_COUNT := 0;
fetch c_MAIN_DATA_FIELDS into v_MAIN_DATA_FIELDS;
while c_MAIN_DATA_FIELDS%found loop
v_CREATE_PIVOT := v_CREATE_PIVOT||' '||v_MAIN_DATA_FIELDS.column_name||' '||v_MAIN_DATA_FIELDS.data_type||' ('||v_MAIN_DATA_FIELDS.data_length||')';
v_CREATE_AGG := v_CREATE_AGG||' '||v_MAIN_DATA_FIELDS.column_name;
v_GROUP_BY := v_GROUP_BY||' '||v_MAIN_DATA_FIELDS.column_name;
v_INSERT_FIELDS := v_INSERT_FIELDS||' '||v_MAIN_DATA_FIELDS.column_name; /* Used to create the pivot insert record */
fetch c_MAIN_DATA_FIELDS into v_MAIN_DATA_FIELDS;
v_CREATE_PIVOT := v_CREATE_PIVOT||',';
v_CREATE_AGG := v_CREATE_AGG||', ';
v_GROUP_BY := v_GROUP_BY||', ';
v_INSERT_FIELDS := v_INSERT_FIELDS||', ';
v_INSERT_FIELDS_COUNT := v_INSERT_FIELDS_COUNT + 1;
end loop;
close c_MAIN_DATA_FIELDS;
/* Add Pivot Data Elements */
open c_PIVOT_FIELDS;
fetch c_PIVOT_FIELDS into v_PIVOT_FIELDS;
v_CREATE_PIVOT := v_CREATE_PIVOT||' "'||nvl(v_PIVOT_FIELDS.piv_fields,'UNKNOWN')||'" '||v_PIV_FIELD_DT||' ('||v_PIV_FIELD_SZ||')';
fetch c_PIVOT_FIELDS into v_PIVOT_FIELDS;
while c_PIVOT_FIELDS%found loop
v_CREATE_PIVOT := v_CREATE_PIVOT||',"'||nvl(v_PIVOT_FIELDS.piv_fields,'UNKNOWN')||'" '||v_PIV_FIELD_DT||' ('||v_PIV_FIELD_SZ||')';
fetch c_PIVOT_FIELDS into v_PIVOT_FIELDS;
end loop;
close c_PIVOT_FIELDS;
/* End the Create Table */
v_CREATE_PIVOT := v_CREATE_PIVOT||' )';
/* End Create Pivot Table */
/* debugging code */
insert into debug_stuff (stuff) values (v_CREATE_PIVOT);
commit;
execute immediate v_CREATE_PIVOT;
/* Aggregate functions COUNT, SUM, AVG, MAX, MIN */
v_CREATE_AGG := v_CREATE_AGG||v_PIV_FIELD||',';
If upper(v_AGG_FUNC) = 'COUNT' then
v_CREATE_AGG := v_CREATE_AGG||' COUNT('||v_AGG_FIELD||') as AGG_DATA FROM MAIN_DATA GROUP BY '||v_GROUP_BY;
elsif upper(v_AGG_FUNC) = 'SUM' then
v_CREATE_AGG := v_CREATE_AGG||' SUM(to_number('||v_AGG_FIELD||')) as AGG_DATA FROM MAIN_DATA GROUP BY '||v_GROUP_BY;
elsif upper(v_AGG_FUNC) = 'AVG' then
v_CREATE_AGG := v_CREATE_AGG||' AVG(to_number('||v_AGG_FIELD||')) as AGG_DATA FROM MAIN_DATA GROUP BY '||v_GROUP_BY;
elsif upper(v_AGG_FUNC) = 'MAX' then
v_CREATE_AGG := v_CREATE_AGG||' MAX('||v_AGG_FIELD||') as AGG_DATA FROM MAIN_DATA GROUP BY '||v_GROUP_BY;
elsif upper(v_AGG_FUNC) = 'MIN' then
v_CREATE_AGG := v_CREATE_AGG||' MIN('||v_AGG_FIELD||') as AGG_DATA FROM MAIN_DATA GROUP BY '||v_GROUP_BY;
end if;
v_CREATE_AGG := v_CREATE_AGG||v_PIV_FIELD; /* Adds the pivot field to the group by list */
--insert into debug_stuff (stuff) values (v_CREATE_AGG); commit;  
/* Generates the table containing aggregate data */
execute immediate v_CREATE_AGG;
/*Example of the query that is constructed below
select em_payroll_unit, pud_payroll_unit_name,
max( decode( em_employee_status,'TR', AGG_DATA, null )),
max( decode( em_employee_status,'AC', AGG_DATA, null )),
max( decode( em_employee_status,'LV', AGG_DATA, null ))
from ( select *
from agg_table
group by em_payroll_unit, pud_payroll_unit_name;
/*Construct the Pivot Query*/
v_INSERT_TEXT := 'insert into piv_table select ';
open c_MAIN_DATA_FIELDS;
fetch c_MAIN_DATA_FIELDS into v_MAIN_DATA_FIELDS;
v_INSERT_TEXT := v_INSERT_TEXT||' '||v_MAIN_DATA_FIELDS.COLUMN_NAME;
fetch c_MAIN_DATA_FIELDS into v_MAIN_DATA_FIELDS;
while c_MAIN_DATA_FIELDS%FOUND loop
v_INSERT_TEXT := v_INSERT_TEXT||', '||v_MAIN_DATA_FIELDS.COLUMN_NAME;
fetch c_MAIN_DATA_FIELDS into v_MAIN_DATA_FIELDS;
end loop;
close c_MAIN_DATA_FIELDS;
open c_PIVOT_FIELDS;
fetch c_PIVOT_FIELDS into v_PIVOT_FIELDS;
while c_PIVOT_FIELDS%FOUND loop
v_INSERT_TEXT := v_INSERT_TEXT||', max(decode(nvl('||v_PIV_FIELD||',''UNKNOWN''), '''||nvl(v_PIVOT_FIELDS.PIV_FIELDS,'UNKNOWN')||''', AGG_DATA, null)) ';
fetch c_PIVOT_FIELDS into v_PIVOT_FIELDS;
end loop;
close c_PIVOT_FIELDS;
v_INSERT_TEXT := v_INSERT_TEXT||' from (select * from agg_table) group by ';
open c_MAIN_DATA_FIELDS;
fetch c_MAIN_DATA_FIELDS into v_MAIN_DATA_FIELDS;
v_INSERT_TEXT := v_INSERT_TEXT||' '||v_MAIN_DATA_FIELDS.COLUMN_NAME;
fetch c_MAIN_DATA_FIELDS into v_MAIN_DATA_FIELDS;
while c_MAIN_DATA_FIELDS%FOUND loop
v_INSERT_TEXT := v_INSERT_TEXT||', '||v_MAIN_DATA_FIELDS.COLUMN_NAME;
fetch c_MAIN_DATA_FIELDS into v_MAIN_DATA_FIELDS;
end loop;
close c_MAIN_DATA_FIELDS;
/* debugging code */
/*insert into debug_stuff (stuff) values (v_INSERT_TEXT);
commit;
execute immediate v_INSERT_TEXT;
commit;
OPEN r_RESULT_SET for SELECT * FROM PIV_TABLE;
--RETURN;
/*------------- Exception Handling ------------------------*/
exception
WHEN OTHERS THEN
v_ErrorNumber := SQLCODE;
v_ErrorText := SUBSTR(SQLERRM, 1, 200);
insert into errors
values (sysdate,
v_ErrorNumber||' , '||v_ErrorText||' ORA_TOOLS');
commit;
v_TABLE_NAME := 'MAIN_DATA';
open c_GET_TABLE_NAME;
fetch c_GET_TABLE_NAME into v_GET_TABLE_NAME;
if c_GET_TABLE_NAME%NOTFOUND then
execute immediate 'create table MAIN_DATA (field1 varchar2(50))';
end if;
close c_GET_TABLE_NAME;
v_TABLE_NAME := 'DIST_VALUES';
open c_GET_TABLE_NAME;
fetch c_GET_TABLE_NAME into v_GET_TABLE_NAME;
if c_GET_TABLE_NAME%NOTFOUND then
execute immediate 'create table DIST_VALUES (PIV_FIELDS varchar2(50))';
end if;
close c_GET_TABLE_NAME;
v_TABLE_NAME := 'AGG_TABLE';
open c_GET_TABLE_NAME;
fetch c_GET_TABLE_NAME into v_GET_TABLE_NAME;
if c_GET_TABLE_NAME%NOTFOUND then
execute immediate 'create table AGG_TABLE (field1 varchar2(50))';
end if;
close c_GET_TABLE_NAME;
v_TABLE_NAME := 'PIV_TABLE';
open c_GET_TABLE_NAME;
fetch c_GET_TABLE_NAME into v_GET_TABLE_NAME;
if c_GET_TABLE_NAME%NOTFOUND then
execute immediate 'create table PIV_TABLE (field1 varchar2(50))';
end if;
close c_GET_TABLE_NAME;
end PIVOT;
END ORA_TOOLS;
CF Call code:
     <cfstoredproc procedure="ora_tools.pivot" datasource="hrpayroll">
     <!--- The query the generates the raw data set --->
     <cfprocparam
          value = "select emf.em_payroll_group,
                    emf.em_payroll_unit,
                    pud.pud_payroll_unit_name as pud_name,
                    emf.em_employee_id
               from emf, pud
               where emf.em_payroll_unit = pud.pud_payroll_unit
               and em_employee_status = 'AC'"
          cfsqltype = "cf_sql_varchar">
     <!--- The field that you want to pivot on --->
     <cfprocparam
          value = "em_payroll_group"
          cfsqltype = "cf_sql_varchar">
     <!--- The aggregate function you want included can be one of COUNT, SUM, AVG, MAX, MIN --->
     <cfprocparam
          value = "COUNT"
          cfsqltype = "cf_sql_varchar">
     <!--- Field that you want to perform the aggregate function upon --->
     <cfprocparam
     value = "em_employee_id"
          cfsqltype = "cf_sql_varchar">
     <cfprocresult name="result">
     </cfstoredproc>
     <cfdump var="#result#">
Thank you for your help,
Mike

I've implemented it by having the package generate and execute DDL (using EXECUTE IMMEDIATE)
but the problem is the tables that are being created are dependencies of the package causing it to generate this error each time it is run.No the problem is creating and dropping objects in code, the invalidation is an expected result of doing that.
You want something like this
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:15151874723724

Similar Messages

  • Having trouble with packages

    I am having trouble getting a java program to see a class that I put in another module.
    The first module is this DMTest.java:
    package mypackage;
    public class DMTest
      public DMTest()
        System.out.println("Hello");
    DMTest.java compiles correctly, and I put it in the "mypackage" directory. Then I try to compile Tester.java.
    import mypackage.*;
    public class Tester
      public static void main (String[] args)
        DMTest mTest = new DMTest();
    This gives me a compile error as follows:
    Tester.java:27: cannot resolve symbol
    symbol  : constructor DMTest  ()
    location: class DMTest
        DMTest mTest = new DMTest();
                                 ^
    1 error-------------------------------------------------------
    Does anyone know what is wrong with my programs? Thanks!

    The only way I can recreate your exact error condition is to change the DMTest constructor to require a parameter. When I then compile Tester, I get the error because the compiler does not find the no-argument constructor.
    This tells me that whatever version of DMTest that the compiler finds when processing Tester, it does not have a valid no-argument constructor.
    I would try a couple of things:
    1) Delete or rename DMTest so it does not exist. Attempt to compile Tester. The error should be different. If it's not, then there is another version somewhere. Run a Windows Find for DMTest.* on all your drives. If you find others, there may be a classpath issue.
    2) Add a main method to DMTest with the same contents as the main() in Tester. Compile and run DMTest. This should help separate the import issue from the constructor issue.
    If you try these, please post the results. This one is a puzzle!

  • Trouble with packages

    I am getting an error message when trying to import a class in a package I have made saying that the class cannot be found.
    C:\kev>javac BirdCopy.java
    BirdCopy.java:3: cannot resolve symbol
    symbol : class Animal
    location: package kev
    import kev.Animal;
    ^
    However, when I run the Animal.class file (java Animal) inside the error code the JVM tells me that it cannot find Animal
    C:\kev>java Animal
    Exception in thread "main" java.lang.NoClassDefFoundError: Animal (wrong name: kev/Animal)
    I've double checked the spelling on the class names. Double checked the paths for the packages, my path setting. I just can't seem to get this package stuff to work.
    Kevin

    Partial success. I've been able to compile them all now.
    http://forums.java.sun.com/thread.jsp?forum=31&thread=42036 showed an example of the javac -classpath syntax and that cleared things up. I was under the impression that classpath was an environment variable just like path. Especially since windows doesn't give an error message for entering "set classpath = --stuff--"
    I can get all three of the classes I am using to compile. Animal.java and BirdCopy are in the "kev" package in the directory c:\kev. BirdCopy extends Animal. Action.java is in c:\anotherDir (yes that is the literal name) and imports BirdCopy, instantiates it, and calls its methods. Action.java will compile ok but when I run it I get an error msg of
    C:\anotherDir>java -classpath c:\ Action
    Exception in thread "main" java.lang.NoClassDefFoundError: Action
    source code for each class follows...
    //Animal.java
    package kev;
    public abstract class Animal {
    public abstract String talk();
    ...just more mothods here...
    public abstract void fight();
    //BirdCopy.java
    package kev;
    import kev.Animal;
    public class BirdCopy extends Animal{
    public String talk()
    {System.out.println("blah blah");
             return "stuff";}
    ...the same methods are implimeted here
    public void fight()
    {System.out.println("kerplow!");}
    //Action.java
    //package kev;
    import kev.BirdCopy;
    public class Action {
    public static void main(String[] args) {
    BirdCopy b = new BirdCopy();
    b.talk();
    b.fight();
    b.sleep();
    b.eat();
    b.move();

  • Trouble with updates

    Hi all,
    So I installed my Design Premium CS4 on a new mac running Lion last night. No troubles with the installation itself, except that I forgot each program creates its own folder in my applications directory, which is my fault for not remembering this from the last install on my old computer. This means I have over a dozen Adobe products at the top of my finder, not to mention the shortcuts for the programs and the uninstalls taking up almost a whole page on my launchpad, which I realise is not really Adobe's fault either.
    Anyhow, I moved everything to it's own sub-directory in Applications, then open each one so it can repair itself from having its files moved since installation. Then I run the updater and the updater creates a new folder for each update in my Applications directory, separate from the 'Adobe' folder I've just created to contain everything in CS4, undermining my previous move.
    On to my question(s). Is there a way I can stop this from happening in the future? Do I really have to uninstall each program then reinstall the whole lot? Can I just move the update files into their corresponding folders where I've got them now (Applications/Adobe/)? I'm afraid doing that will cause more hassles down the track. And not that it matters now, but why does the updater not update to the current location of the programs? Perhaps something for the Adobe folks to fix for next time.
    I hope I have explained myself clearly enough. Thanks (in advance)for the help!

    4.2.10 is the latest version for the Verizon iPhone. As you chose both categories I don't know which you have, but I'm guessing it's CDMA (Verizon).

  • TS1646 I am having a lot of trouble with trying to use my debit card to purchase on itunes it always tells me that my card number is invalid. But i know it isn't because i just got the account the only thing i havent done yet is called my bank to see if i

    I am having a lot of trouble with trying to use my debit card on purchase of itune apps or music. Whenever i put my card information in it tells me that this card is invalid. But there is no way that my card is invalid because i just got it last week. So the only thing i haven't done yet is call my bank to check and see if all my bank statements match but if they do then have no idea what to do to get this to work with my computer, ipad mini, or ipod    HELP! PLEASE!

    I am having this same problem and I have even contacted my bank. The address they have is EXACTLY the way I am typing it.  It does match.  I do not understand.

  • Updated iphone 5 to iOS 6.1.3, now trouble with keyboard not responding correctly and screen zooming in by itself...

    updated iphone 5 to iOS 6.1.3, now I am having trouble with keyboard not responding correctly and screen zooming in by itself...
    Buttons pressing themself...
    Also, my main screen is permanently zoomed in...
    suggestions?

    Double tap the screen with THREE fingers, that should get it back to normal again.
    Then go into Settings > General > Accessibility > Zoom > OFF.
    Not too sure about the keyboard and random button presses though.  Back it up and restore from iTunes, see if that fixes it.

  • I've had trouble with my Macbook since the first month I bought it. I've replaced the hard drive 3 to 4 times. Now some programs won't work or shut off by itself. Is it possible to ask for a complete exchange of products?

    I've had trouble with my Macbook since the first month I bought it. I've replaced the hard drive 3 to 4 times. Now some programs won't work or shut off by itself. Is it possible to ask for a complete exchange of products?

    This may help you: http://store.apple.com/us/help/returns_refund
    It would appear that you can ask for an exchange but it doesn't specify any time frame... Hopefully someone more knowledgeable can add to this.
    By the way, if you've replaced the drive so many times, perhaps there's something else going on elsewhere.

  • I am having trouble with my i pad it freezes it turns off by itself and the screen turns blue?

    I am having trouble with my i pad it freezes and it turns off by itselfI and screen turns blue?

    Start by rebooting the iPad by holding both the power and home buttons until the apple logo appears and it restart, ignoring the red slider if that appears.  See if that helps.

  • I am having trouble with billing.  Itunes says the security code on my credit card is invalid but the number is correct.  Please advise.

    I am having trouble with billing.  Itunes store says the security code is invalid but it is correct. Please advise

    You'll need to contact your bank about this my friend.

  • HT201272 I recently upgraded from an Iphone 4S to 5. I am having trouble with magicjack; each time i install it it gives me an error message "The installation associated with this device is invalid". Cannot seem to access account info or make calls.

    I recently upgraded from an Iphone 4S to 5. I am having trouble with magicjack; each time i install it it gives me an error message "The installation associated with this device is invalid". Cannot seem to access account info or make calls.

    I have exactly the same trouble.
    If you wet the answer, please let me know!!

  • Trouble with booting system after upgrade udev= systemd

    Hi everybody,
    I have been trouble with my system since last upgrade (udev => systemd)
    My issue is something like this: https://bbs.archlinux.org/viewtopic.php?pid=1106157 but advice from this discussion doesn't work.
    When system booting, *immediately* (very fast, too fast) display login screen after start parsing hook [udev]
    Of course, i can't login - type username and i have redraw screen again on all /dev/tty* - i have no chance to type password.
    Many invalid logins suspend init for 5 minutes and allow me see display error due stop redraw screen - libpam.so.0 cannot find.
    I suspect that, partitions aren't mount (this fast login screen doesn't have even hostname). I have a 4 discs, with many partitions - mounting
    this take a some time (+- 5 secs).
    In rescuecd, i can mount all partitions and chroot. In chroot all works fine - /bin/login (i was checked authorization on all users),
    paths and pams are ok. Of course i try ,,default rescue trick'': `pacman -Suy linux udev mkinitcpio` and 'mkinitcpio -p linux' on rescuecd
    but nothing it's changed after reboot. I checking grub config, and unpack and check initramfs-linux.img - all ok.
    In my mkinitcpio.conf ofcourse i have MODULES="ext3" (for my filesystems).
    Please help.

    crab wrote:
    This may or may not be related... but I saw this message just now during an upgrade:
    (121/168) upgrading mkinitcpio [###################] 100%
    ==> If your /usr is on a separate partition, you must add the "usr" hook
    to /etc/mkinitcpio.conf and regenerate your images before rebooting
    And am wondering what the message means by if /usr is on a separate partition - separate partition to what?  /boot? / ?
    I have my /usr partition in the same partition as /  (but /boot is in a different partition)
    Logic tells me I'm safe (haven't rebooted yet), as / is "master", and anything else is a separate partition, and I have /usr on the same partition as /.
    Do you guys have separate /usr and/or /boot partitions?  As stated in first sentence this may not be related, but looks important...
    It means separate from /. So yes, you're right, you are "safe" from having to do anything with this message on your system.
    And to the other people on this thread: make sure you do have all your packages uniformly updated, including any pam-related AUR or ABS-build packages. libpam and the pam module directory (.../lib/security) were moved from /lib to /usr/lib a little while back, so make sure that anything that cares about where these may be have been updated so they aren't confused by this move.
    Last edited by ataraxia (2012-06-03 22:40:22)

  • Trouble with Toshiba built-in webcam: "unable to enumerate USB device"

    I am running archlinux on a Toshiba Satellite L70-B-12H laptop, and having troubles with the Webcam. *Once in a while*, everything goes well and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 004: ID 04f2:b448 Chicony Electronics Co., Ltd
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    # dmesg
    [ 3433.456115] usb 3-1.3: new high-speed USB device number 4 using ehci-pci
    [ 3433.781119] media: Linux media interface: v0.10
    [ 3433.809842] Linux video capture interface: v2.00
    [ 3433.826889] uvcvideo: Found UVC 1.00 device TOSHIBA Web Camera - HD (04f2:b448)
    [ 3433.835893] input: TOSHIBA Web Camera - HD as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input15
    [ 3433.835976] usbcore: registered new interface driver uvcvideo
    [ 3433.835977] USB Video Class driver (1.1.1)
    Unfortunately, *most of the time* the camera seems invisible to my system, and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    (note the missing "04f2:b448 Chicony Electronics Co., Ltd" device), and
    # dmesg
    [ 480.104252] usb 3-1.3: new full-speed USB device number 4 using ehci-pci
    [ 480.171097] usb 3-1.3: device descriptor read/64, error -32
    [ 480.341235] usb 3-1.3: device descriptor read/64, error -32
    [ 480.511375] usb 3-1.3: new full-speed USB device number 5 using ehci-pci
    [ 480.578007] usb 3-1.3: device descriptor read/64, error -32
    [ 480.748151] usb 3-1.3: device descriptor read/64, error -32
    [ 480.918282] usb 3-1.3: new full-speed USB device number 6 using ehci-pci
    [ 481.325196] usb 3-1.3: device not accepting address 6, error -32
    [ 481.392091] usb 3-1.3: new full-speed USB device number 7 using ehci-pci
    [ 481.798926] usb 3-1.3: device not accepting address 7, error -32
    [ 481.799166] hub 3-1:1.0: unable to enumerate USB device on port 3
    Searching on the web, most results I found lead to this page, where it is said that the problem is due to badly tuned overcurrent protection, and advocated that unplugging and switching off the computer for a little while gets things back into normal. This does not really work for me; the problem seems to occur more randomly, unfortunately with high probability (my camera is available after less than one boot out of ten).
    I tried to ensure that the ehci-hcd module is loaded at boot with the ignore-oc option (with a file in /etc/module-load.d/), to no avail.
    I also wrote a script which alternatively removes and reloads the ehci-pci driver until my device is found in lsusb. It is sometimes helpful, but usually not. And even when my device is found that way, it can only be used for a while before disappearing again.
    Anyway, such a hack is unacceptable... So, my questions are:
    is it indeed related to overcurrent protection ?
    is there anything else I can try ?
    should I file somewhere an other of the numerous bug reports about "unable to enumerate USB device" already existing ?
    If of any importance, I am running linux 3.15.7, because at the time I installed my system, I couldn't get the hybrid graphic card Intel/AMD working under 3.16.
    Last edited by $nake (2014-10-18 16:29:06)

    uname -a
    Linux libra 3.9.4-1-ARCH #1 SMP PREEMPT Sat May 25 16:14:55 CEST 2013 x86_64 GNU/Linux
    pacman -Qi linux
    Name : linux
    Version : 3.9.4-1
    Description : The linux kernel and modules
    Architecture : x86_64
    URL : http://www.kernel.org/
    Licences : GPL2
    Groups : base
    Provides : kernel26=3.9.4
    Depends On : coreutils linux-firmware kmod mkinitcpio>=0.7
    Optional Deps : crda: to set the correct wireless channels of your country
    Required By : nvidia
    Optional For : None
    Conflicts With : kernel26
    Replaces : kernel26
    Installed Size : 65562.00 KiB
    Packager : Tobias Powalowski <[email protected]>
    Build Date : Sat 25 May 2013 16:28:17 CEST
    Install Date : Sun 02 Jun 2013 15:30:35 CEST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature

  • I am having trouble with some of my links having images. For example, Foxfire has a picture that looks like a small world. The links in question are blank.

    I am having trouble with my links/websites having images attached to them. The place where the image should be is blank. For example, AARP has an A for its image. My storage website has a blank broken box where the image should be. I forgot I had trouble and had to reset Foxfire, this problem occurred after that reset.

    cor-el,
    Mixed content normally gives the world globe image, unless you are using a theme that uses a broken padlock instead. Maybe the gray triangle means invalid? I came across that in a few themes (what is invalid was not made clear), but those were not using triangle shapes to indicate that.
    I came across that mention in one of the pages you posted:
    * https://support.mozilla.org/kb/Site+Identity+Button
    I cannot attach a screenshot because I have not seen a triangle of any kind in my address bar.

  • Trouble with DNS set up

    Hello !
    I've got a real trouble with my dns configuration... and i can't understand! so, i need some help....
    well, qutie newbie in mac os server, i run in on a G4, and i had not noticed any trouble until i've decided to run open directory as a master with LDAP, wanting to have a kerberos protection for the users.
    Kerberos doesn't want to play with me !
    I've been in console mode to have a look, and, actually i've seen this :
    "Oct 17 11:31:08 wakan servermgrd: servermgr_dns: no name available via DNS for 192.168.0.109
    Oct 17 11:31:08 wakan servermgrd: servermgr_dns: no reverse DNS entry for server, various services may not function properly"
    Ok... my DNS has a trouble... but i don't know how to fix it ! Is there anybody in this world who can help me?
    I don't want to have a real DNS for my little server... but i understand that my config is not good. I can understand that having a caching DNS can improve the quality of my config, and, in other hand that it is necessary for having the services of OSX server in an effeciant way, but i don't know the way and the parameters i've to put in my config to fix it.
    Now, just some words on my config...
    First, i've got an adress provided by my FAI (the frenchy workd for ISP, i think) is "193.252.209.135". This adress is set on a d-link modem router via PPOE. The DNS of my provider (wanadoo.fr) are 80.10.246.1 and 80.10.246.132.
    After this there is my G4 With mac osX server.
    • en0, the "extenal gate" and the internal ethernet on the computer is plug on the modem with the adress "192.168.0.109". the router is set on "192.168.0.1". the dns are 80.10.246.1 and 80.10.246.132.
    • en1, the "internal gate" for the network, an PCI card in the computer, has the parameters : adress "192.168.3.1", subnet "255.255.255.0", router "192.168.3.1". no dns records. (no VPN service for the moment). After this, i've a switch for the macs behind the server. (without any link agregation)
    All those parameters have been set by the gateaway assistant.
    And now the parameters inside the admin server :
    DHCP : en1 - adress from 192.168.3.2 to 192.168.3.254, name 192.168.3. no static card. Router 192.168.3.1. No name for domaine by defaut, name servers 80.10.246.1 and 80.10.246.132 No LDAP, no WINS.
    DNS : No zone transfert, recursivity is ON. No zone records.
    NAT : set on full, Transfert and Network Address Translation.
    When i've been on the terminal, i had those information:
    "wakan:~ st$ sudo changeip -checkhostname
    Password:
    Primary address = 192.168.0.109
    Current HostName = wakan.local
    The DNS hostname is not available, please repair DNS and re-run this tool."
    All my "main" services are working fine (AFP, Firewall, DHCP, DNS, Update) Open Directory is running without Kerberos. By the way, all the macs after the G4server can have a corect access to internet, and share information via LDAP of Open Directory, but i've to say that, a couple of days later, a friend of mine, who has a PC computer, can't have a DHCP dynamic address when he plug on my little network. I think that it is an other trouble, and i've decided to have e look to this later... but if someone knows how to resolve it...
    So here begins the nightmare for me... so if anybody can help me... i realy need some help to fix this mystery!!!
    Special thanks!

    As the router modem is already doing NAT why use NAT in the server?
    If you want to use OpenDirectory and other services you should/need to set up the DNS correctly using the server's private IP (and others in the same range the server is setup with). The domainname used internally can be different than your public one.
    And then use the server as the only DNS for you LAN clients and the server itself. Forwarders (your ISP DNSes) in /etc/named.conf usually speeds up lookups of external addresses (also turning off IPv6 can help that too).

  • My wife and I share apple id but have our own phones, and now having trouble with imessage

    My wife and I share apple id but have our own phones, and now having trouble with imessage. Sharing calenders, apps, music, contacts, etc...all great. But when we imessage each other. Our phones get confused and either not deliver message, or send it to and from itself.

    Go to Settings > Facetime and you will see "You can be reached for video calls at:"
    This should list your phone number (iPhone) and your email address (probably the gmail one).
    And then an option for "Add another email..."
    Choose that and enter your @me.com account and it'll send a verification email.
    Same for iMessage: Settings > Messages > "Receive at" > Add Another Email
    So you can be called by facetime and use iMessage through multiple email accounts yes.

Maybe you are looking for